DELETE/ng-cms/content-types/{projectId}/{key}smart_toyAgentic spec

Delete a content type

Удаляет указанный тип контента из проекта, архивируя его и возвращая подтверждение операции.

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

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

The unique identifier of the project (bucket)

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

The ID or key of the content type to delete

Ответы

200Content type archived successfully. Returns the ID of the deleted content type.

тип: ApiResponse<string>

successbooleanIndicates whether the request was successful
resultstringThe ID of the deleted content type
errorsErrorDetail[]List of errors (empty on success)
401Unauthorized. A valid bearer token 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)

Исходный код

Референсные реализации этого эндпоинта — если поведение неочевидно, проще свериться с кодом, чем гадать.

Клиентские библиотеки

Официальные SDK для вызова этого метода из вашего кода — без ручной сборки запроса.

Konso.Clients.Cms
NuGet
dotnet add package Konso.Clients.Cms
Страница пакетаarrow_outward
@konso/cms-client
npm
npm install @konso/cms-client
Страница пакетаarrow_outward

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