DELETE
/ng-cms/content-types/{projectId}/{key}https://apis-spb.konso.io/ng-cms/content-types/{projectId}/{key}smart_toyAgentic specDelete a content type
Удаляет указанный тип контента из проекта, архивируя его и возвращая подтверждение операции.
Параметры запроса
projectIdstringThe unique identifier of the project (bucket)
keystringThe 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 successfulresultstringThe ID of the deleted content typeerrorsErrorDetail[]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 falseerrorsErrorDetail[]List of server-side errorscorrelationIdstringUnique ID for tracing the errormessagestringError messagestackstringStack trace (non-production only)Язык:
expand_more
Пример запроса
curl --request DELETE \\
--url https://apis-spb.konso.io/ng-cms/content-types/{projectId}/{key} \\
--header 'Authorization: Bearer <token>'Response Example200
{
"success": true,
"result": "ct_a1b2c3d4e5f6",
"errors": []
}KONSO
Исходный код
Референсные реализации этого эндпоинта — если поведение неочевидно, проще свериться с кодом, чем гадать.
Клиентские библиотеки
Официальные SDK для вызова этого метода из вашего кода — без ручной сборки запроса.
TS