Update media
PATCH
/ admin/ v1/ stores/ {store_id}/ media/ {media_id}- products:write
- content:write
Change a file's alt text, in the default language and others.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.media_idstringrequiredThe media's ID, like
med_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
altstring · or nullalt_translationsobject · or nullAlt text in other languages by locale (
{"ar": "…"}); a blank value removes that language, and languages not named are kept.
Returns
200 Updated file.
Errors
- 404
not_foundNo such media. - 422
validation_failedValidation failed.