إنتقل إلى المحتوى الرئيسي

Assign or unassign a lead

POST 

/v1/agents/:agentId/leads/:leadId/assign

x-scope: "leads:write"

Assigns the lead to a teammate, or unassigns it with "assigned_to": null. The teammate must be able to open the agent: a user_id from listAgentMembers with can_open_agent: true (422 assignee_not_allowed otherwise). The lead's conversation is assigned with it. Assigning a lead to the teammate it already has is allowed. Mojeeb records the assignment as made by the person who created the key.

Request​

Responses​

The lead as it now is, with its new assigned_to.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.