Create a project data object

View as Markdown

Creates a project-scoped object definition, EITHER by cloning a library/template source ({ from }) or from a full definition body; promoteToLibrary additionally creates a library copy (requires data-object:manage). Needs the project’s project:object-manage; an inaccessible project reads as 404.

Authentication

AuthorizationBearer

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

Path parameters

projectIdstringRequired

Request

This endpoint expects an object.
objectRequired
OR
objectRequired

Response

The created object definition.
definitionobject or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error