e500d1216b
This fixes issues in the swagger.json file. The motivation to do so is to be able to generate API clients using https://openapi-generator.tech Doing so will require further changes to the api spec, but this seems like a good first step since it is now "valid" according to editor.swagger.io and openapi-generator validate. Fixes #2806
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
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
|
|
required:
|
|
- name
|
|
- email
|
|
- role
|
|
properties:
|
|
name:
|
|
type: string
|
|
description: Full Name of the agent
|
|
email:
|
|
type: string
|
|
description: Email of the Agent
|
|
role:
|
|
type: string
|
|
enum: ['agent', 'administrator']
|
|
description: Whether its administrator or agent
|
|
availability_status:
|
|
type: string
|
|
enum: ['available', 'busy', 'offline']
|
|
description: The availability setting of the agent.
|
|
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
|