Set the primary agent of an application
PUThttps://platform.docana.com/api/v1/applications/:id/primary-agent/
Makes an agent the primary of the application: the one new conversations open with and, on an employee, the one its channels talk to. Use it to repair a primary that points to a deleted agent. Channels routed to the previous primary move to the new one. Returns 409 when the current primary is published and enabled and the chosen agent is a draft or disabled, so an application that answers today is never left without a reply.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Primary agent saved
The request body, query, or path failed validation. See validationErrors.
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
A resource referenced by the path does not exist or is not visible to the caller.
Unexpected server error.