HOC SiteDocumentation

Types

# Object types

An object type is a schema: label, kind, field definitions, and routing helpers. List types on the website, then create or update a definition. Caps: 20 fields per type. Field type details live on the Object fields page.

List object types for the website.

GET /api/v1/{locale}/{websiteId}/objects

Create a type. Requires create_update_delete_object_types.

POST /api/v1/{locale}/{websiteId}/objects
{
  "label": "string",
  "kind": "content | user",
  "fieldSchema": [],
  "slug": "string?",
  "detailRouteParam": "string?",
  "identifierFieldKey": "string?",
  "id": "uuid?"
}

Read, replace fields on, or delete a type definition.

GET|PATCH|DELETE /api/v1/{locale}/{websiteId}/objects/{objectTypeId}/definition
{
  "label": "string?",
  "fieldSchema": []?,
  "slug": "string?",
  "detailRouteParam": "string?",
  "identifierFieldKey": "string?"
}

MCP: get_object_types (no objectTypeId lists them), save_object_type (overlaysByLocale writes locale labels), delete_object_type, restore_object_type.

fieldSchema is an array of field definitions. Each field has a key, label, type, and type-specific options. See Object fields for every type and calculated expressions.

Schema caps

Schema caps per object type: at most 20 fields, 20 options on each enum field, and 20 lifecycle events.

A website may use a user-kind type for members. Website roles and users are documented under Access.