Skip to main content
The ContentType type defines the structure and validation rules for content items.

Type Definition

Fields

Field Details

packageVersion

Content types are bound to a specific package version. This ensures that the components referenced in the content type’s layout are available when rendering content.

schema

The schema field contains a JSON Schema that defines the content structure:
Content items of this type must conform to this schema.

Example Queries

List Content Types

Get Content Type with Schema

Response:

Schema Validation

When creating or updating content, the content data is validated against the content type’s schema:
  • Required fields must be present
  • Type validation ensures fields match expected types
  • Format validation checks strings against formats (date-time, uri, email)
  • Constraints like minLength, maxLength, minimum, maximum are enforced
  • Content - Content items that use this type
  • Package - Package version bound to content type