Archive a data object
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
id
Query parameters
purge
Allow archiving a project-scoped definition that still has records.
Response
The archived object definition.
definition
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error