GET/ng-cms/content-types/{projectId}/{idOrKey}

Get a content type by ID or key

Параметры запроса

projectIdstring
Обязательный

The unique identifier of the project

idOrKeystring
Обязательный

The ID or machine-readable key of the content type (e.g. 'ct_a1b2c3' or 'blog-post')

Ответы

200The requested content type.

тип: CmsContentTypeDto

idstringUnique identifier of the content type
projectIdstringProject (bucket) this content type belongs to
namestringHuman-readable display name
keystringUnique machine-readable identifier
descriptionstringOptional description of the content type
displayFieldstringSchema field key used as the display/title field for entries
schemaCmsSchemaField[]Array of field definitions
schemaVersionnumberIncremented each time the schema is modified
fieldsCountnumberNumber of fields in the schema
isActivebooleanWhether the content type is active
createdBynumberID of the user who created the content type
updatedBynumberID of the user who last updated the content type
updatedByNamestringName of the user who last updated the content type
createdAtstringISO 8601 timestamp of creation
updatedAtstringISO 8601 timestamp of last update
401Unauthorized. A valid API key is required.
404Not Found. No content type exists with the given ID or key.
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 false
errorsErrorDetail[]List of server-side errors
correlationIdstringUnique ID for tracing the error
messagestringError message
stackstringStack trace (non-production only)

Оставаясь на сайте, Вы даете свое согласие на использование файлов cookie