Developers

Products

Markdown

Update product content

Name, description, category and status. Requires If-Match.

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

Path parameters

idstringrequired

Headers

If-Matchstringrequired

Request body

namestring
descriptionstring
short_descstring
imagestring | null
imagesarray<string>
image_altstring
categorystring | null
slugstring
keywordsarray<string>
supported_devicesarray<string>
seo_titlestring
seo_descriptionstring
og_imagestring | null

Response

dataobjectrequired
idinteger
namestring
descriptionstring
short_descstring | null
imagestring | null
imagesarray<string>
image_altstring | null
categorystring | null
Category name.
slugstring | null
keywordsarray<string>
supported_devicesobject
seo_titlestring | null
seo_descriptionstring | null
og_imagestring | null
product_kindobject
digital service physical
statusobject
active inactive
pricestring
Price in SAR.
old_pricestring | null
Price before discount.
price_stateobject
required until a price is set; a new product is created inactive with price 0.00.required ready
resource_versioninteger
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