Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • media_idstringrequired

    The media's ID, like med_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • altstring · or null
  • alt_translationsobject · or null

    Alt text in other languages by locale ({"ar": "…"}); a blank value removes that language, and languages not named are kept.

Returns

200 Updated file.

Errors

  • 404not_foundNo such media.
  • 422validation_failedValidation failed.