Light Mode
Update Auto Assignment Rule
PUT
/orders/assignment/rules/{rule_id}Last modified: a month 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: a month ago