2021-10-07 07:51:46 +00:00
|
|
|
tags:
|
2022-04-05 10:35:49 +00:00
|
|
|
- Agents
|
2021-10-07 07:51:46 +00:00
|
|
|
operationId: add-new-agent-to-account
|
|
|
|
summary: Add a New Agent
|
|
|
|
description: Add a new Agent to Account
|
|
|
|
security:
|
|
|
|
- userApiKey: []
|
|
|
|
parameters:
|
|
|
|
- name: data
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: object
|
2021-11-17 13:25:15 +00:00
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- email
|
|
|
|
- role
|
2021-10-07 07:51:46 +00:00
|
|
|
properties:
|
2021-11-17 13:25:15 +00:00
|
|
|
name:
|
2021-10-07 07:51:46 +00:00
|
|
|
type: string
|
|
|
|
description: Full Name of the agent
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
description: Email of the Agent
|
2021-11-17 13:25:15 +00:00
|
|
|
role:
|
2021-10-07 07:51:46 +00:00
|
|
|
type: string
|
|
|
|
enum: ['agent', 'administrator']
|
|
|
|
description: Whether its administrator or agent
|
2021-11-17 13:25:15 +00:00
|
|
|
availability_status:
|
2021-10-07 07:51:46 +00:00
|
|
|
type: string
|
|
|
|
enum: ['available', 'busy', 'offline']
|
2021-11-12 10:47:59 +00:00
|
|
|
description: The availability setting of the agent.
|
2021-10-07 07:51:46 +00:00
|
|
|
auto_offline:
|
|
|
|
type: boolean
|
|
|
|
description: Whether the availability status of agent is configured to go offline automatically when away.
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Success
|
|
|
|
schema:
|
|
|
|
description: 'Newly Created Agent'
|
|
|
|
$ref: '#/definitions/agent'
|
|
|
|
403:
|
|
|
|
description: Access denied
|