Create record

Create a new record with metadata. Returns 409 if a record with the same type and name already exists in the tenant.

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
namestringRequired1-500 characters
typestringRequired1-255 characters
messageslist of objects or nullOptional
metadatamap from strings to anyOptionalDefaults to {}
ownerIdstring or nullOptional1-255 characters

Owner key for this record, stored in the indexed owner_id column and filterable via ?ownerId=. Overrides a nested metadata.ownerId. Null means no owner.

Response

Created record
createdAtstring
idstring
messageslist of any or null
metadatamap from strings to any
namestring
organizationIdstring or null
ownerIdstring or null
productSurfaceIdstring or null
schemaValidboolean or null
typestring
updatedAtstring
userIdstring
metadataLabelsmap from strings to stringsOptional
metadataSchemaobjectOptional
schemaWarningslist of objectsOptional
warningslist of objectsOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
422
Unprocessable Entity Error
500
Internal Server Error