Skip to main content

upsertCustomRecord

Creates or updates a custom record identified by collection + key.

Business Rules

  • Records are tenant-scoped to the current company
  • A matching active record is updated in place
  • If no active record exists for collection + key (+ brand), a new record is created

Permissions Required

  • tools:save_record
upsertCustomRecord(
input: UpsertCustomRecordInput!
): CustomRecord!

Arguments

upsertCustomRecord.input ● UpsertCustomRecordInput! non-null input common

Parameters for UpsertCustomRecord

Type

CustomRecord object common

A tenant-scoped custom JSON record identified by collection + key. Records are persisted in the Tools store and can optionally be scoped to a brand through metadata.