Update a store product
PUT /stores/{storeResourceId}/products/{resourceId}
/stores/{storeResourceId}/products/{resourceId}Changes the data of a product: title, description, vendor, addresses and categories.
When to use: When the product is edited in the shop and the change must reach Easymailing.
When not to use: To change price or stock use update_product_variant.
Permissions: Requires the manager role or higher, or the marketing.audiences.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
Identifier (resource_id) of the store the product belongs to.
Identifier (resource_id) of the product: the one you chose when you created it with create_store_product.
The updated Product resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/stores/acme-shop/products/sneaker-01" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "string", "description": "string", "vendor": "string", "url": "http://example.com", "image_url": "http://example.com", "categories": [ "/entity/1" ] }'{ "resource_id": "string", "title": "string", "description": "string", "vendor": "string", "url": "http://example.com", "image_url": "http://example.com", "variants": [ { "resource_id": "string", "title": "string", "sku": "string", "price": 0, "inventory_quantity": 0, "image_url": "http://example.com", "url": "http://example.com", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "categories": [ "/entity/1" ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}