/ng-cms/media/{projectId}/{mediaId}https://apis-spb.konso.io/ng-cms/media/{projectId}/{mediaId}smart_toyAgentic specUpdate 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
Ответы
тип: ApiResponse<boolean>
successbooleanIndicates whether the request was successfulresultbooleanAlways true on successerrorsErrorDetail[]List of errors (empty on success)тип: ApiResponse<T>
successbooleanAlways falseerrorsErrorDetail[]List of server-side errorscorrelationIdstringUnique ID for tracing the errormessagestringError messagestackstringStack trace (non-production only)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"
}'{
"success": true,
"result": true,
"errors": []
}Исходный код
Референсные реализации этого эндпоинта — если поведение неочевидно, проще свериться с кодом, чем гадать.
Клиентские библиотеки
Официальные SDK для вызова этого метода из вашего кода — без ручной сборки запроса.
TS