Archive a custom object definition
DELETE/v1/objects/{entitySlug}
Archives a custom object definition and its active lists while retaining its records. Returns 409 if dependencies prevent archival; resolve them in the Lightfield app. Restoring the definition does not restore its lists.
Required scope: config:delete
Rate limit category: Write
Archive a custom object definition
curl https://api.lightfield.app/v1/objects/$ENTITY_SLUG \
-X DELETE \
-H 'Lightfield-Version: 2026-03-01' \
-H "Authorization: Bearer $API_KEY"{
"id": "id",
"archived": true,
"archivedAt": "archivedAt",
"createdAt": "createdAt",
"description": "description",
"icon": "icon",
"labelPlural": "labelPlural",
"labelSingular": "labelSingular",
"slug": "slug",
"updatedAt": "updatedAt"
}Returns Examples
{
"id": "id",
"archived": true,
"archivedAt": "archivedAt",
"createdAt": "createdAt",
"description": "description",
"icon": "icon",
"labelPlural": "labelPlural",
"labelSingular": "labelSingular",
"slug": "slug",
"updatedAt": "updatedAt"
}