2021-10-07 07:51:46 +00:00
|
|
|
tags:
|
|
|
|
- Agent
|
|
|
|
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
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
description: Full Name of the agent
|
|
|
|
required: true
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
description: Email of the Agent
|
|
|
|
required: true
|
|
|
|
role:
|
|
|
|
type: string
|
|
|
|
enum: ['agent', 'administrator']
|
|
|
|
description: Whether its administrator or agent
|
|
|
|
required: true
|
|
|
|
availability_status:
|
|
|
|
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
|