Skip to main content
POST
Upsert a record

Authorizations

Authorization
string
header
required

User session JWT. Send as Authorization: Bearer <token>.

Path Parameters

collection_id
string<uuid>
required

Collection identifier returned at creation.

Body

application/json
data
object
required

Record fields matching the collection schema. Unknown fields are accepted (flexible schema); system fields are ignored.

Example:
match_fields
string[]
required

Fields identifying the record to update if it exists.

Example:
ttl_days
integer
Required range: x >= 0

Response

Upsert result.

operation
string
Example:

"upserted"

result
object