v1
latestOpenAPI 3.0.12026-07-22120163333.7 KBLead Routing
Update a routing rule
Updates a routing rule identified by its ID. Validates activeHours and routingStrategy:
- activeDays: list of 1-7; deduplicated and sorted server-side.
- hoursStart / hoursEnd: each in [0, 23].
- routingStrategy.strategyType must match the business type. LEAD_POND is only allowed for AGENT_LEAD; NEXT_UP and BLAST_ALERT are not allowed for ASSISTANT_LEAD.
- memberWeights must reference valid members in the team.
- touchMinutes must be in (0, 1440]; when > 60, must be an integer multiple of 60.
Caller must have MANAGE_LEAD_DISTRIBUTION or MANAGE_LEAD_DISTRIBUTION_DEPARTMENT permission.
put/v1.0/routing/rule/{type}
Path parameters
typeinteger required
Routing business type.
Headers
Authorizationstring required
Bearer [access_token]
Content-Typestring required
application/json
Request body
Example request
{
"activeHours": {
"activeDays": [
1,
2,
3,
4,
5
]
}
}Response
Rule updated.
string required
Example response
"ok"