Create a custom object type
POST/v1/objects
Creates a custom object type with its default attributes and relationships. Returns its public metadata. Requires the custom objects entitlement.
When the slug belongs to an archived custom object type, restores that type with its records and applies the request as if creating it: omitted optional fields take their defaults. Its lists stay archived. Returns 409 when the slug belongs to an active custom object type in this workspace.
Required scope: config:create
Rate limit category: Write
Body ParametersJSON
Create a custom object type
curl https://api.lightfield.app/v1/objects \
-H 'Content-Type: application/json' \
-H 'Lightfield-Version: 2026-03-01' \
-H "Authorization: Bearer $API_KEY" \
-d '{
"labelSingular": "labelSingular",
"slug": "slug"
}'{
"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"
}