Developers

Products

Markdown

Update product media

Replaces the main image, additional images and alt text. Requires If-Match.

PATCH/stores/{storeId}/v1/products/{id}/media

Path parameters

idstringrequired

Headers

If-Matchstringrequired
ETag from a GET of this same resource projection.

Request body

imagestring | null
imagesarray<string>
image_altstring

Response

dataobjectrequired
idinteger
resource_versioninteger
imagestring | null
imagesarray<string>
image_altstring | null
executionobject
Who executed the request: the app, version, installation and store. Field names here are camelCase.
appIdstring (uuid)
versionIdstring (uuid)
installationIdstring (uuid)
storeIdstring (uuid)
requestIdstring (uuid)
generationinteger
routeEpochinteger
appAuthEpochinteger
grantRevisioninteger
metaobjectrequired
request_idstring (uuid)
The request ID; include it in any support request.

Errors

HTTPCodeMeaning
428PRECONDITION_REQUIREDNo If-Match header.
412RESOURCE_CHANGEDThe resource changed after you read it; read it again.

Shared codes are listed in Errors.

    ↑↓ moveEnter openEsc close