Upsert a record (hosted RecordStore.upsert)

Hosted fulfillment of the runtime RecordStore seam. Inserts or merges / replaces a record keyed by the authenticated caller’s ownership (org|user, type, name). Requires an Enterprise plan: ineligible accounts receive 403 (code BYOC_PLAN_REQUIRED).

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
metadatamap from strings to anyRequired
namestringRequired>=1 character
typestringRequired>=1 character
mergeStrategyenumOptional
Allowed values:

Response

The stored record + created flag (dates as ISO-8601 strings)

createdboolean
recordobject

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error