id
of the allocated branch as a path parameter, including its courier and area allocation rules.branches.read_write
- Branchs Read & WriteAuthorization: Bearer ********************
{
"name": "Allocation Rout Name Updated",
"company_id": "665151403",
"priority": 1,
"rules": [
{
"type": "total_quantity",
"operator": ">=",
"value": "3"
}
],
"action": {
"type": "branch",
"branch_ids": [
"1937885067",
"876438899"
],
"single_branch_only": false
}
}
curl --location --request PUT 'https://api.salla.dev/admin/v2/branches/allocation/246711701' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Allocation Rout Name Updated",
"company_id": "665151403",
"priority": 1,
"rules": [
{
"type": "total_quantity",
"operator": ">=",
"value": "3"
}
],
"action": {
"type": "branch",
"branch_ids": [
"1937885067",
"876438899"
],
"single_branch_only": false
}
}'
{
"status": 200,
"success": true,
"data": {
"id": 1939592358,
"name": "Allocation Rout Name Updated",
"company_id": 665151403,
"priority": 1,
"rules": [
{
"type": "total_quantity",
"operator": ">=",
"value": [
"3"
]
}
],
"action": {
"type": "branch",
"strategy": null,
"branch_ids": [
"1937885067",
"876438899"
],
"single_branch_only": false
}
}
}