PUT
/ng-cms/media/{projectId}/{mediaId}https://apis-spb.konso.io/ng-cms/media/{projectId}/{mediaId}Update a media asset
Параметры запроса
projectIdstringThe unique identifier of the project (bucket)
mediaIdstringThe unique identifier of the media asset to update
Тело запроса
UpdateMediaRequesttitlestringHuman-readable title for the asset
descriptionstringOptional description of the asset
Ответы
200Media asset updated 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 PUT \
--url https://apis-spb.konso.io/ng-cms/media/{projectId}/{mediaId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"title": "Updated Hero Image",
"description": "Refreshed banner for the homepage"
}'Response Example200
{
"success": true,
"result": true,
"errors": []
}KONSO