Update Auto Assignment Rule
PUT
/orders/assignment/rules/{rule_id}This endpoint allows you to update the order rules per employee by passing the rule_id
as the path parameter.
Request
Order Rule ID
Order Rule Entity Name
Order Rule Entity Value
[
{
"entity": "city",
"value": "2097610897"
},
{
"entity": "country",
"value": "SA"
},
{
"entity": "status",
"value": "7646469"
},
{
"entity": "branch",
"value": "566146469"
}
]
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A unique identifier assigned to a specific rule or condition that affects the pricing, discounts, or other aspects of an order.
A unique identifier assigned to a user of a system, application, or website.
{
"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"
}
]
}
}