v1

latestOpenAPI 3.0.12026-07-22120163333.7 KB
Lead Routing

Update default (supplement) routing rule

Updates the default / fallback routing rule for the given business type.

Notes:

  • BLAST_ALERT and Next_Up strategies are not allowed for ASSISTANT_LEAD.
  • When strategyType = DEFAULT_ASSIGNEE and type = AGENT_LEAD, exactly one of assigneeAgentId or assigneeGroupId must be supplied.
  • For non-DEFAULT_ASSIGNEE strategies, touchMinutes must be in (0, 1440] and, when > 60, an integer multiple of 60.

Caller must have MANAGE_LEAD_DISTRIBUTION or MANAGE_LEAD_DISTRIBUTION_DEPARTMENT permission.

put/v1.0/routing/rule/supplement/{type}

Path parameters

typeinteger required

Routing business type.

Headers

Authorizationstring required

Bearer [access_token]

Content-Typestring required

application/json

Request body

roleIdinteger

Role id, This parameter is required when type == 4

strategyTypeinteger

Strategy type

touchMinutesinteger

Only next up and blast alert are affected

assigneeAgentIdinteger

Only default assignee are affected

assigneeGroupIdinteger

Only default assignee and routing type is AGENT_LEAD are affected

Response

Rule updated.

string required

Example response

"ok"