Skip to main content

Cookie control banner

Necessary Cookies
These cookies are necessary for this website to function correctly. They are set when you perform certain actions on the site, such as creating an account, logging in, changing your privacy preferences or submitting a form. You can block these cookies in your browser, but this will stop parts of the site from working properly.
Functional Cookies
These cookies allow the website to provide extra functionality and more personalised experiences. They may be set by us or by third party providers whose services we have added to our pages. If you choose not to allow these cookies, these services may not work correctly.
Analytical Cookies
These cookies record anonymous data on how visitors use our website to help us monitor how well our website works. This data includes how many people have looked at specific pages, how long visitors stay on the site, and what devices they use. We use this data to identify changes that we could make to improve your experience and make our website more efficient.
Marketing Cookies
We set some cookies so you are shown more relevant marketing content. These include cookies from third-party advertising networks to show you different adverts on their services if you have previously visited our site. If you choose not to allow these cookies, you may experience less relevant advertising on other sites.
Browse Documentation
HTTP - Management

Content type

Created by Contensis product team, last updated 17 Jul 2020

A content type resource can be retrieved from the Delivery API to understand the schema of an entry. Entries are constructed and validated using the information defined in the fields collection.

Properties

NameData typeData formatDescriptionExample
idstringuuidA unique content type identifier
projectIdstringThe project identifier found in the project overview screen of the management consolemovieDb
namestringlocalized valueThe friendly name given to a content type
descriptionstringlocalized valueThe description text given to a content type
entryTitleFieldstringThe id of the field which should be used as the title in entry listings
entryDescriptionFieldstringThe id of the field which should be used as the description in entry listings
fieldsobject[...]fieldA collection of fields that form the schema for an entry
groupsobject[...]content type groupA collection of groups that enable related fields to be grouped together in the UI
enabledbooleanIf enabled then entries can be created from the content type
defaultLanguagestringlanguageThe default language of entries created using the content type
supportedLanguagesstring[...]languageA list languages which the content type supports
workflowIdstringThe workflow that derived entries will follow
dataFormatstringEither entry or asset
previewUrlstringThe URL where an example of an entry based on the content type can be viewed
defaultRendererIdstringuuidThe ID for the default renderer for the content type. Null if there is no default renderer
defaultParentNodeIdstringuuidThe ID for the default parent node for the content type. Null if there is no default parent node. All entries created using the content type will be created in the following node.
versionobjectversionVersion information about the content type

Example

JSON
{ "id": "movie", "projectId": "website", "name": { "en-GB": "Movie" }, "description": { "en-GB": "A movie type" }, "entryTitleField": "title", "entryDescriptionField": "overview", "fields": [ { "id": "title", "name": { "en-GB": "Title" }, "dataType": "String", "dataFormat": null, "description": {}, "default": {}, "validations": null, "editor": { "id": "text", "instructions": { "en-GB": "The title of the movie" }, "properties": { "placeholderText": { "en-GB": "Enter the full title of the movie appropriate to the region" } }, "groupId": "summary" } }, { "id": "tagline", "name": { "en-GB": "Tagline" }, "dataType": "String", "dataFormat": null, "description": {}, "default": {}, "validations": null, "editor": null, "groupId": null }, { "id": "overview", "name": { "en-GB": "Overview" }, "dataType": "String", "dataFormat": "html", "description": {}, "default": {}, "validations": null, "editor": null, "groupId": "additionalInfo" }, { "id": "releaseDate", "name": { "en-GB": "Release Date" }, "dataType": "dateTime", "dataFormat": null, "description": {}, "default": {}, "validations": null, "editor": { "id": "date", "instructions": { "en-GB": "The release date of the movie" }, "properties": {} }, "groupId": "summary" }, { "id": "actors", "name": { "en-GB": "Actors" }, "dataType": "ObjectArray", "dataFormat": "entry", "description": {}, "default": {}, "validations": { "contentType": { "contentType": "dan" } }, "editor": { "id": "entry", "instructions": { "en-GB": "" }, "properties": { "placeholderText": { "en-GB": "Add the main actors" } } }, "groupId": "additionalInfo" } ], "groups": [ { "id": "summary", "name": { "en-GB": "Main summary fields" } }, { "id": "additionalInfo", "name": { "en-GB": "Additional Information" } } ], "enabled": true, "defaultLanguage": "en-GB", "supportedLanguages": [ "en-GB", "fr-FR", "de-DE", "es" ], "workflowId": "ContensisMultilingual", "dataFormat": "entry", "previewUrl": "http://www.mymoviewebsite.com/movies/terminator", "defaultRendererId": "F1A7ABD5-9241-4FBD-AD1C-E1F46B6F6D44", "defaultParentNodeId": "3C7361CD-58A0-46CD-A414-F6D105BD8454", "version": { "createdBy": "s.derrickson", "created": "2016-10-12T09:29:18.5144641+01:00", "modifiedBy": "b.cumberbatch", "modified": "2016-10-13T10:15:12.1973648+01:00", "publishedBy": "b.cumberbatch", "published": "2016-10-13T10:15:12.1973648+01:00", "versionNo": "2.0" } }