List content types
Log in to add to favouritesPage last updated 25 September 2024
This 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
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}'curl --location 'https://cms-{alias}.cloud.contensis.com/api/management/projects/{projectId}/contenttypes?dataformat=form' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'