Create an inventory stock location
How to create an inventory stock location via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X POST \
'https://yourdomain.commercelayer.io/api/inventory_stock_locations' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "inventory_stock_locations",
"attributes": {
"priority": 1
},
"relationships": {
"stock_location": {
"data": {
"type": "stock_locations",
"id": "ABCRtyUpBa"
}
},
"inventory_model": {
"data": {
"type": "inventory_models",
"id": "BCDRtyUpBa"
}
}
}
}
}'Last updated