is_primary: true moves the primary flag: one team has one primary warehouse.api_key: ********************X-Api-Key: ********************{
"name": "East Coast Prep",
"website": "eastcoastprep.com",
"location": "string",
"contacts": "string",
"config": {},
"status": "active",
"is_primary": false
}curl --location 'https://app.sellerassistant.app/api/v1/sa/inventory/warehouses?api_key=%3Capi-key%3E' \
--header 'Content-Type: application/json' \
--data '{
"name": "East Coast Prep",
"website": "eastcoastprep.com",
"location": "string",
"contacts": "string",
"config": {},
"status": "active",
"is_primary": false
}'{
"data": [
{
"id": 3,
"name": "East Coast Prep",
"website": "eastcoastprep.com",
"location": "string",
"contacts": "string",
"config": {},
"status": "active",
"is_primary": false,
"is_shared": false,
"provider": "string",
"is_synced": true,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z"
}
],
"meta": {
"succeeded": 2,
"failed": 1
},
"errors": [
{
"code": "not_found",
"message": "The product [P-1] was not found."
}
]
}