Skip to content

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 ParametersJSONExpand Collapse
labelSingular: string

Singular display label.

slug: string

Unique custom object slug within the workspace. Immutable after creation.

description: optional string

Description of the custom object type, or null.

icon: optional "Add" or "Agent" or "AlarmClock" or 64 more

Display icon, or null to use the default.

One of the following:
"Add"
"Agent"
"AlarmClock"
"Archive"
"Attachment"
"Bell"
"Book"
"Briefcase"
"Calendar"
"CameraOutline"
"ChartArea"
"ChartLine"
"ChartPie"
"Checkmark"
"ChevronRightDouble"
"CircleAdd"
"Clock"
"Code"
"Command"
"Competitors"
"Compose"
"CreditCard"
"DealValue"
"DeviceDesktop"
"Dice"
"Document"
"Download"
"Draggable"
"EmployeeBadge"
"EngagementAnalyticsAlt"
"Enrich"
"Folder"
"Funding"
"Grid"
"Hashtag"
"Help"
"Key"
"Keyboard"
"LightBulb"
"Link"
"Mail"
"MicrophoneOutline"
"Money"
"Moon"
"MultiplePagesPortrait"
"OpenQuote"
"PageLandscape"
"Paperplane"
"People"
"Phone"
"Preferences"
"Search"
"Shapes"
"Sparkle"
"SquareStack"
"Star"
"Suggestions"
"Sun"
"Table"
"TableColumn"
"Tag"
"Teams"
"ThreeDCube"
"ThreeDStack"
"VideoAlt"
"View"
"Waveform"
labelPlural: optional string

Plural label. Defaults to the pluralized singular label when omitted or null.

ReturnsExpand Collapse
ObjectCreateTypeResponse object { id, archived, archivedAt, 7 more }
id: string

Stable public ID of the custom object definition.

archived: boolean

Whether this custom object type is archived.

archivedAt: string

ISO 8601 archive timestamp, or null when active.

createdAt: string

ISO 8601 creation timestamp.

description: string

Description of the custom object type, or null.

icon: string

Display icon, or null when no icon is configured.

labelPlural: string

Plural display label, or null.

labelSingular: string

Singular display label.

slug: string

Custom object slug used in API paths.

updatedAt: string

ISO 8601 last-update timestamp.

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"
}