Light Mode
Update Auto Assignment Rule
PUT
/orders/assignment/rules/{rule_id}Last modified:Â 23 days ago
This endpoint allows you to update the order rules per employee by passing the rule_id
as the path parameter.
Request
Path Params
rule_id
integerÂ
required
Order Rule ID
Example:
90828
Body Params application/json
array of:
entity
stringÂ
required
Order Rule Entity Name
value
stringÂ
required
Order Rule Entity Value
Example
[
{
"entity": "city",
"value": "2097610897"
},
{
"entity": "country",
"value": "SA"
},
{
"entity": "status",
"value": "7646469"
},
{
"entity": "branch",
"value": "566146469"
}
]
Request samples
Responses
Success(200)
Error Validation(422)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": {
"id": 123123123,
"user_id": 2897329,
"rules": [
{
"entity": "city",
"value": "2097610897"
},
{
"entity": "country",
"value": "SA"
},
{
"entity": "status",
"value": "7646469"
},
{
"entity": "branch",
"value": "566146469"
}
]
}
}
Last modified: 23 days ago