is_pickup and is_delivery both false.city_id; the country is taken from the city. An entry updates every row the company has for that city, including the origin cities of its rates, so all of them hold the same values. A city with no row is created. An entry sent without external_region_id clears it. If a city appears twice in one request, the last entry wins.202; requests of the same company are applied one at a time. Use List Supported Cities to see the result once it is applied.shipping. read_write- Shipping Read & WriteAuthorization: Bearer ********************{
"cities": [
{
"city_id": 1939592358,
"external_name": "Makkah",
"is_pickup": true,
"is_delivery": true,
"external_region_id": 7
},
{
"city_id": 566146469,
"external_name": "Jeddah",
"is_pickup": false,
"is_delivery": true
}
]
}curl --location --request PUT 'https://api.salla.dev/admin/v2/shipping/companies/cities' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"cities": [
{
"city_id": 1939592358,
"external_name": "Makkah",
"is_pickup": true,
"is_delivery": true,
"external_region_id": 7
},
{
"city_id": 566146469,
"external_name": "Jeddah",
"is_pickup": false,
"is_delivery": true
}
]
}'{
"status": 202,
"success": true,
"data": {
"total": 2
}
}