DELETE
/ng-cms/content-types/{projectId}/{key} https://apis-spb.konso.io/ng-cms/content-types/{projectId}/{key} Delete a content type
Параметры запроса
projectId string The unique identifier of the project (bucket)
key string The ID or key of the content type to delete
Ответы
200 Content type archived successfully. Returns the ID of the deleted content type.
тип: ApiResponse<string>
success boolean Indicates whether the request was successful result string The ID of the deleted content type errors ErrorDetail[] List of errors (empty on success) 401 Unauthorized. A valid bearer token is required.
404 Not Found. No content type exists with the given ID or key.
412 Precondition Failed. The project's current plan does not allow access to this resource, or payment is required to proceed.
500 Unexpected server error.
тип: ApiResponse<T>
success boolean Always false errors ErrorDetail[] List of server-side errors correlationId string Unique ID for tracing the error message string Error message stack string Stack 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 Example 200
{
"success": true,
"result": "ct_a1b2c3d4e5f6",
"errors": []
} KONSO