Skip to main content

List content types

Log in to add to favourites
This endpoint lists all content types and allows filtering by data format and version status.
GET/api/management/projects/{projectId}/contenttypes/

Parameters

NameParameter typeTypeDescription
projectId(required)pathstringThe project identifier found in the project overview screen of the management console.
versionStatusquerystringThe status of the associated entry, either published or latest. The default is published
dataFormatquerystringThe specific dataFormat, default is all.

Responses

HTTP status codeReasonModel
200SuccessContent type
401UnauthorizedError
404Project not foundError
500Internal server errorError

Examples

Retrieve all latest content types that produce entries

cURL
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
curl --location 'https://cms-{alias}.cloud.contensis.com/api/management/projects/{projectId}/contenttypes?dataformat=form' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request