Create a template data object

View as Markdown

Creates a template-scoped object definition, EITHER by cloning a library source ({ from }) or from a full definition body. Requires data-object:manage.

Authentication

AuthorizationBearer

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

Path parameters

templateIdstringRequired

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