Modo Claro
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
Parâmetros Path
rule_id
integer
requerido
Order Rule ID
Exemplo:
90828
Parâmetros Bodyapplication/json
array of:
entity
string
requerido
Order Rule Entity Name
value
string
requerido
Order Rule Entity Value
Exemplo
[
{
"entity": "city",
"value": "2097610897"
},
{
"entity": "country",
"value": "SA"
},
{
"entity": "status",
"value": "7646469"
},
{
"entity": "branch",
"value": "566146469"
}
]
Request samples
Respostas
Success(200)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Esquema de Dados
No schema defined
Exemplo
{
"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