List content types
Log in to add to favouritesThis endpoint lists all content types and allows filtering by data format and version status.
GET/api/management/projects/{projectId}/contenttypes/
Parameters
Name | Parameter type | Type | Description |
---|---|---|---|
projectId(required) | path | string | The project identifier found in the project overview screen of the management console. |
versionStatus | query | string | The status of the associated entry, either published or latest. The default is published |
dataFormat | query | string | The specific dataFormat, default is all. |
Responses
HTTP status code | Reason | Model |
---|---|---|
200 | Success | Content type |
401 | Unauthorized | Error |
404 | Project not found | Error |
500 | Internal server error | Error |
Examples
Retrieve all latest content types that produce entries
curl --location 'https://cms-{alias}.cloud.contensis.com/api/management/projects/{projectId}/contenttypes?versionstatus=latest&dataformat=form' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'
Retrieve all published content types that produce from responses
curl --location 'https://cms-{alias}.cloud.contensis.com/api/management/projects/{projectId}/contenttypes?dataformat=form' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'