Upsert a record (hosted RecordStore.upsert)
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.
metadata
name
type
mergeStrategy
Allowed values:
Response
The stored record + created flag (dates as ISO-8601 strings)
created
record
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