GET
/ng-cms/content-types/{projectId}https://apis-spb.konso.io/ng-cms/content-types/{projectId}List content types
Параметры запроса
projectIdstringThe unique identifier of the project
fromnumberпо умолчанию: 1Starting offset for pagination (1-based)
tonumberпо умолчанию: 20Maximum number of items to return per page
Ответы
200Paginated list of content types for the project.
тип: PagedApiResponse<CmsContentTypeDto>
401Unauthorized. A valid API key is required.
412Precondition Failed. The project's current plan does not allow access to this resource, or payment is required to proceed.
500Unexpected server error.
тип: ApiResponse<T>
successbooleanAlways falseerrorsErrorDetail[]List of server-side errorscorrelationIdstringUnique ID for tracing the errormessagestringError messagestackstringStack trace (non-production only)Язык:
expand_more
Пример запроса
curl --request GET \\
--url 'https://apis-spb.konso.io/ng-cms/content-types/{projectId}?from=1&to=20' \\
--header 'x-api-key: <api-key>'Response Example200
{
"total": 2,
"list": [
{
"id": "ct_a1b2c3d4e5f6",
"projectId": "my-project-id",
"name": "Blog Post",
"key": "blog-post",
"description": "Standard blog post content type",
"displayField": "title",
"schema": [
{
"key": "title",
"label": "Title",
"type": "text",
"required": true,
"maxLength": 300
},
{
"key": "body",
"label": "Body",
"type": "richtext",
"required": true
}
],
"schemaVersion": 2,
"fieldsCount": 2,
"isActive": true,
"createdBy": 42,
"updatedBy": 42,
"updatedByName": "Jane Smith",
"createdAt": "2025-01-10T12:00:00Z",
"updatedAt": "2025-03-05T09:30:00Z"
}
]
}KONSO