Data model

The following tables describe the schema and attributes used in Content Hub ONE.

Note

For guidance on API syntax, see Syntax.

Content types

The following table describes the schema for a content type.

Field typeDescriptionRequiredLimit
NameAn internal name used when managing the content type in Content Hub ONE.Yes40 characters
IDContent type identifier that must be unique per tenant. It must be alphanumeric, and can contain periods, underscores, and hyphens, but not spaces or other special characters. It cannot start with the word taxonomy. The ID cannot be media. Consecutive periods are not allowed. Once defined it cannot be changed.Yes40 characters
DescriptionDescription of the content type, displayed in the user interface.No256 characters
FieldsFields defined for the content type.N/A50 fields
SystemList of system attributes for a content item.N/AN/A
Note

The maximum number of content types per tenant is 100.

Content type fields

The following table describes the schema for content type fields.

Field nameDescriptionRequiredLimit
NameName of the field.Yes40 characters
IDUser or system generated identifier of a field in the content type. It must be alphanumeric, with no spaces or other special characters (including underscores). It cannot start with the word taxonomy. You can use a period as long as it is not at the end of the ID.Yes40 characters
TypeType of field.YesN/A
RequiredBoolean field that defines whether a field is mandatory.N/AN/A
Help textSupplemental text explaining the purpose or use of a field. Text is displayed beneath the field.No100 characters
Note

The maximum number of fields per content type is 50. The following field IDs are reserved and cannot be used: sysVersion, sysStatus, sysCreatedBy, sysCreatedAt, sysUpdatedBy, sysUpdatedAt, sysPublishedAt, sysPublishedBy, id, name, ref.

Important

The ID must be unique per content type, and it cannot be changed after the content type has been saved.

Field types

You can add any of the following fields to a content type.

Field typeDescriptionLimit
Short textSingle line text.1,000 characters
Long textMulti-line text.50,000 characters
Rich textText with formatting. Rich text fields include text formatting. The value and the formatting are saved separately as JSON.200,000 characters
NumberInteger.9223372036854775807
DateTimeISO 8601 format of date and time representation (year-month-day-time), for example, 2022-04-24T19:13:55. In the app, time is displayed as mm/dd/yyyy.N/A
MediaRelated media items.50 items
ReferenceRelated content items.50 items
SelectRelated taxonomies.300 items

Content items

The following table describes the data model for content items.

Field typeDescriptionRequiredLimit
Type IDID of the content type the item belongs to.YesN/A
NameThe name of the content item. The name displayed at the top of the page automatically changes to match what you type here.N/A1,000 characters
FieldsFields defined for the content item.N/A50 fields
SystemList of system attributes for a content item.N/AN/A
Note

The maximum number of content items is 100,000. To specify a content item ID, add it to the request; otherwise, it is auto-generated. You can only specify the content item ID using the APIs.

Media items

The following table describes the data model for media items.

Field typeDescriptionRequiredLimit
ID

Unique identifier for the media item. It must be alphanumeric, and can contain periods, underscores and hyphens, but not spaces or other special characters. It cannot start with the word taxonomy.

By default, the identifier is the same as the name. Once defined it cannot be changed.

Yes256 characters
NameName of the media item. It can contain periods but cannot contain spaces or special characters. Defaults to Untitled if left blank.No1,000 characters
DescriptionDescription of the media item.No50,000 characters
FileFile object.N/A70 MB
SystemList of system attributes for a media item.N/AN/A
Note

The maximum number of media items is 250,000, and the maximum number of media items per media field is 50. The maximum file size for an asset is 70 MB.

Taxonomies

The following table describes the data model for taxonomies.

Field typeDescriptionRequiredLimit
IDTaxonomy ID that must be unique across taxonomies and cannot start with the word taxonomy. It must be alphanumeric, and can contain underscores, and hyphens.Yes40 characters
NameName for the taxonomy, displayed in the app.Yes50 characters
Value IDValue ID that must be unique within a taxonomy. It must be alphanumeric, and can contain underscores and hyphens.Yes50 characters
Value NameName for the value within the taxonomy.Yes50 characters
Note

The maximum number of taxonomies is 300, and the maximum number of values within a taxonomy is 100.

Query parameters

You can use query parameters to control the set of items returned.

ParameterDescription
pageNumberThe page number to return. Default is 1.
pageSizeThe number of results to return per page. The default is 20. The maximum is 100.
sortBySorts the results according to a specific attribute, in ascending or descending order.
searchSearches for items whose name or description contains a specific text string, similar to user queries entered in the Content Hub ONE search box.
viewUsed in the Get all items request to exclude custom fields, for example ?view=excludeCustomFields.

System attributes

A response also includes the following system attributes:

AttributesDescription
TypeThe type of entity or operation (publish, unpublish).
VersionThe version of the entity.
StatusThe status of the entity.
CreatedByThe user who created the entity.
CreatedAtTime when the entity was created.
lastPublishProgressLast publishing status (completed, null).
PublishedByThe user who last published the entity.
PublishedAtTime when the entity was last published.
TriggeredByThe user who triggered the last publication of the entity.
TriggeredAtTime when the last publication was triggered.
UpdatedByThe user who last modified the entity.
UpdatedAtTime when the entity was last modified.
Note

You cannot modify system attributes.

Do you have some feedback for us?

If you have suggestions for improving this article,