Archive a data object

View as Markdown

Soft-deletes (archives) an object definition. Project-scoped definitions with existing records require ?purge=true. Authorization is scope-dependent (library/template need data-object:manage; project-scoped need project:object-manage).

Authentication

AuthorizationBearer

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

Path parameters

idstringRequired

Query parameters

purgebooleanOptional

Allow archiving a project-scoped definition that still has records.

Response

The archived object definition.
definitionobject or null

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error