Skip to content

Content types

The content types of a site. schema holds the field definitions; a field’s key does not change, and a removed field stays archived, with its values.

Module: Online content (content).

  • GET /api/v1/content_types - List with filters, sorting and pagination (scope content:read)
  • GET /api/v1/content_types/{id} - A record by id (scope content:read)
  • POST /api/v1/content_types - Create a record (scope content:write)
  • PATCH /api/v1/content_types/{id} - Modify the submitted fields (scope content:write)
  • DELETE /api/v1/content_types/{id} - Delete or deactivate (scope content:write)
  • POST /api/v1/content_types/{id}/purge_field - Permanently deletes an archived top-level field, along with its values in all entries. (scope content:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • site_id (string; write, required)
  • key (string; write)
  • label_singular (string; write)
  • label_plural (string; write, required)
  • icon (string; write)
  • supports (array; write)
  • singleton (boolean; write)
  • url_pattern (string; write)
  • list_columns (array; write)
  • schema (array; write)
  • schema_version (number; write)
  • template_key (string; read)
  • sort_order (integer; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • content_types.created
  • content_types.updated
  • content_types.deleted