Skip to main content
POST
Upsert entity records

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>.

Path Parameters

app_id
string
required

ID of the app that owns the entity.

entity_name
string
required

Name of the entity, exactly as List entity schemas reports it. Don't pass User here. It doesn't fail, but it reads and writes a separate, disconnected set of records stored under that name, not the app's real user accounts, which are managed through their own endpoints.

Body

application/json
records
Records · object[]
required

The records to create or update, up to 500, each a flat JSON object of the fields the entity's schema declares. Every record needs a value for each key field.

Example:
key
required

Field, or list of fields, that identifies a record. A stored record whose values in these fields match a record you send is updated, and otherwise a new record is created.

Example:

"order_number"

Response

How many records were created and updated, and the records themselves.

How many records were created and updated, and the records themselves.

created
integer
required

Number of new records created.

Example:

1

updated
integer
required

Number of stored records updated.

Example:

1

records
EntityRecord · object[]
required

The created records, then the updated ones.

Example: