DELETE
/ng-cms/media/{projectId}/{mediaId}https://apis-spb.konso.io/ng-cms/media/{projectId}/{mediaId}Delete a media asset
Параметры запроса
projectIdstringThe unique identifier of the project (bucket)
mediaIdstringThe unique identifier of the media asset to delete
Ответы
200Media asset deleted successfully.
тип: ApiResponse<boolean>
successbooleanIndicates whether the request was successfulresultbooleanAlways true on successerrorsErrorDetail[]List of errors (empty on success)401Unauthorized. A valid bearer token is required.
404Not Found. No media asset exists with the given ID.
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/media/{projectId}/{mediaId} \
--header 'Authorization: Bearer <token>'Response Example200
{
"success": true,
"result": true,
"errors": []
}KONSO