Create a record

View as Markdown

Creates a record under a project-scoped object, applying default-value tokens, validating against the definition, and enforcing unique fields and declared cardinality. Requires data-record:write on the project.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired
The parent project id.
objectIdstringRequired

The project-scoped object definition id.

Request

This endpoint expects an object.
datamap from strings to anyRequired
Field values keyed by field key.

Response

The created record.
recordmap from strings to any
An arbitrary JSON object.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error