Basic information
POST /{shopId}/products/{productId}/variations
Creates new product variations.
Authorisation
OAuth 2.0 Token required with scopes:
products_write
URI parameters
Name | Type | Description |
---|---|---|
shopId |
string |
The unique identifier of the shop. Required:
true
Example:
DemoShop
|
productId |
string |
The unique identifier of the product. Required:
true
Example:
52F221E0-36F6-DC4E-384A-AC1504050C04
|
Request attributes
Name | Type | Description |
---|---|---|
|
object of variation (create request) |
Request body
Media type application/json
{ "productType":"Headphones", "visibleAfterCreation": true, "variationAttributes": [ { "name": "Connectivity", "defaultForExistingProducts": "Bluetooth", "values": [ { "value": "Bluetooth" }, { "value": "Wired" } ] }, { "name": "Type", "defaultForExistingProducts": "on-ear", "values": [ { "value": "In-ear" }, { "value": "On-ear" } ] } ] }
Response
HTTP 204