Store object; the id is taken from the path.primary to 1 makes this the default store: it is forced to active and the primary flag is cleared on all other stores. Activating a store that was previously not active may be blocked by your plan's warehouse limit (see the 402 response).Authorization: Bearer ********************curl --location --globoff --request PUT 'https://.daftra.com/api2/stores/2415.json' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"Store":{"name":"Main Warehouse (Renamed)","shipping_address":"12 Market St, Cairo","primary":0,"active":1,"branch_id":1}}'{
"code": 200,
"result": "successful"
}