Create a SKU list item
How to create a SKU list item via API
To create a new SKU list item, send a POST
request to the /api/sku_list_items
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/sku_list_items
Arguments
Body Parameter | Type | Required |
---|---|---|
type |
| Required |
attributes.position |
| Optional |
attributes.sku_code |
| Optional |
attributes.quantity |
| Optional, default is '1' |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
attributes.metadata |
| Optional |
relationships.sku_list |
| Required |
relationships.sku |
| Required |
Example
The following request creates a new SKU list item:
Last updated