chore: Move agent availability to Account level (#3074)
- Move agent availability to the account level
This commit is contained in:
19
swagger/paths/application/agent_bots/create.yml
Normal file
19
swagger/paths/application/agent_bots/create.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
tags:
|
||||
- Account AgentBots
|
||||
operationId: create-an-account-agent-bot
|
||||
summary: Create an Agent Bot
|
||||
description: Create an agent bot in the account
|
||||
parameters:
|
||||
- $ref: '#/parameters/account_id'
|
||||
- name: data
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/agent_bot_create_update_payload'
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
$ref: '#/definitions/agent_bot'
|
||||
401:
|
||||
description: Unauthorized
|
||||
12
swagger/paths/application/agent_bots/delete.yml
Normal file
12
swagger/paths/application/agent_bots/delete.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
tags:
|
||||
- Account AgentBots
|
||||
operationId: delete-an-account-agent-bot
|
||||
summary: Delete an AgentBot
|
||||
description: Delete an AgentBot from the account
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
401:
|
||||
description: Unauthorized
|
||||
404:
|
||||
description: The agent bot does not exist in the account
|
||||
16
swagger/paths/application/agent_bots/index.yml
Normal file
16
swagger/paths/application/agent_bots/index.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
tags:
|
||||
- Account AgentBots
|
||||
operationId: list-all-account-agent-bots
|
||||
summary: List all AgentBots
|
||||
description: List all agent bots available for the current account
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
type: array
|
||||
description: 'Array of agent bots'
|
||||
items:
|
||||
- $ref: '#/definitions/agent_bot'
|
||||
|
||||
401:
|
||||
description: Unauthorized
|
||||
14
swagger/paths/application/agent_bots/show.yml
Normal file
14
swagger/paths/application/agent_bots/show.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
tags:
|
||||
- Account AgentBots
|
||||
operationId: get-details-of-a-single-account-agent-bot
|
||||
summary: Get an agent bot details
|
||||
description: Get the details of an agent bot in the account
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
$ref: '#/definitions/agent_bot'
|
||||
401:
|
||||
description: Unauthorized
|
||||
404:
|
||||
description: The given agent bot ID does not exist in the account
|
||||
18
swagger/paths/application/agent_bots/update.yml
Normal file
18
swagger/paths/application/agent_bots/update.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
tags:
|
||||
- Account AgentBots
|
||||
operationId: update-an-account-agent-bot
|
||||
summary: Update an agent bot
|
||||
description: Update an agent bot's attributes
|
||||
parameters:
|
||||
- name: data
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/agent_bot_create_update_payload'
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
$ref: '#/definitions/agent_bot'
|
||||
401:
|
||||
description: Unauthorized
|
||||
Reference in New Issue
Block a user