Skip to content

Upsert an object (server token only)

PUT
/v1/objects/{type}/{id}
curl --request PUT \
--url http://localhost:3000/v1/objects/example/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "custom": {} }'

Replaces custom wholesale. Creates the object if absent.

type
required
string
id
required
string
Media typeapplication/json
object
custom
required
object
key
additional properties
any
Examplegenerated
{
"custom": {}
}

The upserted object

Media typeapplication/json

Tenant-owned mutable data that activities point at. Opaque to dropin — we store, update, and return custom, and never interpret it. Writes are server-token only.

object
type
required
string
id
required
string
custom
required
object
key
additional properties
any
updated_at
required
string format: date-time
Example
{
"type": "session",
"id": "1234"
}

Authenticated but not permitted.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: VALIDATION_FAILED UNAUTHENTICATED FORBIDDEN NOT_FOUND CONFLICT RATE_LIMITED INTERNAL
message
required
string
requestId
required
string
fields

Present only for VALIDATION_FAILED.

Array<object>
object
path
string
message
string
Example
{
"error": {
"code": "VALIDATION_FAILED"
}
}