Create a content type
Log in to add to favouritesPOST/api/management/projects/{projectId}/contenttypes/
Parameter
Name | Parameter type | Type | Description | Example | Required |
---|---|---|---|---|---|
projectId | path | string | The project identifier found in the project overview screen of the management console | movieDb | true |
Responses
Examples
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
POST: /api/management/projects/movieDb/contenttypes/
{
"id": "movie",
"projectId": "movieDb",
"name": {
"en-GB": "Movie"
},
"description": {
"en-GB": "A movie type"
},
"entryTitleField": "title",
"entryDescriptionField": "overview",
"fields": [
{
"id": "title",
"name": {
"en-GB": "Title"
},
"dataType": "string",
"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"
}
}
}
},
{
"id": "tagline",
"name": {
"en-GB": "Tagline"
},
"dataType": "string",
},
{
"id": "overview",
"name": {
"en-GB": "Overview"
},
"dataType": "string",
"dataFormat": "html"
},
{
"id": "releaseDate",
"name": {
"en-GB": "Release Date"
},
"dataType": "dateTime",
"validations": null
},
{
"id": "actors",
"name": {
"en-GB": "Actors"
},
"dataType": "objectArray",
"dataFormat": "entry",
"validations": {
"allowedContentTypes": {
"contentTypes": [
"actor"
]
}
}
}
],
"defaultLanguage": "en-GB",
"supportedLanguages": [
"en-GB"
],
"workflowId": "contensisEntryBasic",
"dataFormat": "entry"
}