Data model
The following tables describe the schema and attributes used in Content Hub ONE.
For guidance on API syntax, see Syntax.
Content types
The following table describes the schema for a content type.
Field type | Description | Required | Limit |
---|---|---|---|
Name | An internal name used when managing the content type in Content Hub ONE. | Yes | 40 characters |
ID | Content 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. | Yes | 40 characters |
Description | Description of the content type, displayed in the user interface. | No | 256 characters |
Fields | Fields defined for the content type. | N/A | 50 fields |
System | List of system attributes for a content item. | N/A | N/A |
The maximum number of content types per tenant is 100.
Content type fields
The following table describes the schema for content type fields.
Field name | Description | Required | Limit |
---|---|---|---|
Name | Name of the field. | Yes | 40 characters |
ID | User 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. | Yes | 40 characters |
Type | Type of field. | Yes | N/A |
Required | Boolean field that defines whether a field is mandatory. | N/A | N/A |
Help text | Supplemental text explaining the purpose or use of a field. Text is displayed beneath the field. | No | 100 characters |
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.
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 type | Description | Limit |
---|---|---|
Short text | Single line text. | 1,000 characters |
Long text | Multi-line text. | 50,000 characters |
Rich text | Text with formatting. Rich text fields include text formatting. The value and the formatting are saved separately as JSON. | 200,000 characters |
Number | Integer. | 9223372036854775807 |
DateTime | ISO 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 |
Media | Related media items. | 50 items |
Reference | Related content items. | 50 items |
Select | Related taxonomies. | 300 items |
Content items
The following table describes the data model for content items.
Field type | Description | Required | Limit |
---|---|---|---|
Type ID | ID of the content type the item belongs to. | Yes | N/A |
Name | The name of the content item. The name displayed at the top of the page automatically changes to match what you type here. | N/A | 1,000 characters |
Fields | Fields defined for the content item. | N/A | 50 fields |
System | List of system attributes for a content item. | N/A | N/A |
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 type | Description | Required | Limit |
---|---|---|---|
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. | Yes | 256 characters |
Name | Name of the media item. It can contain periods but cannot contain spaces or special characters. Defaults to Untitled if left blank. | No | 1,000 characters |
Description | Description of the media item. | No | 50,000 characters |
File | File object. | N/A | 70 MB |
System | List of system attributes for a media item. | N/A | N/A |
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 type | Description | Required | Limit |
---|---|---|---|
ID | Taxonomy ID that must be unique across taxonomies and cannot start with the word taxonomy. It must be alphanumeric, and can contain underscores, and hyphens. | Yes | 40 characters |
Name | Name for the taxonomy, displayed in the app. | Yes | 50 characters |
Value ID | Value ID that must be unique within a taxonomy. It must be alphanumeric, and can contain underscores and hyphens. | Yes | 50 characters |
Value Name | Name for the value within the taxonomy. | Yes | 50 characters |
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.
Parameter | Description |
---|---|
pageNumber | The page number to return. Default is 1. |
pageSize | The number of results to return per page. The default is 20. The maximum is 100. |
sortBy | Sorts the results according to a specific attribute, in ascending or descending order. |
search | Searches for items whose name or description contains a specific text string, similar to user queries entered in the Content Hub ONE search box. |
view | Used in the Get all items request to exclude custom fields, for example ?view=excludeCustomFields . |
System attributes
A response also includes the following system attributes:
Attributes | Description |
---|---|
Type | The type of entity or operation (publish, unpublish). |
Version | The version of the entity. |
Status | The status of the entity. |
CreatedBy | The user who created the entity. |
CreatedAt | Time when the entity was created. |
lastPublishProgress | Last publishing status (completed, null). |
PublishedBy | The user who last published the entity. |
PublishedAt | Time when the entity was last published. |
TriggeredBy | The user who triggered the last publication of the entity. |
TriggeredAt | Time when the last publication was triggered. |
UpdatedBy | The user who last modified the entity. |
UpdatedAt | Time when the entity was last modified. |
You cannot modify system attributes.