Chore: APIs for agent bots (#676)
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
17
swagger/paths/agent_bots/index.yml
Normal file
17
swagger/paths/agent_bots/index.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
get:
|
||||
tags:
|
||||
- AgentBot
|
||||
operationId: listAgentBots
|
||||
summary: List all agentbots
|
||||
description: List all available agentbots for the current installation
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
type: Array
|
||||
description: 'List of agent bots'
|
||||
$ref: '#/definitions/agent_bot'
|
||||
404:
|
||||
description: Inbox not found, Agent bot not found
|
||||
403:
|
||||
description: Access denied
|
||||
29
swagger/paths/inboxes/set_agent_bot.yml
Normal file
29
swagger/paths/inboxes/set_agent_bot.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
post:
|
||||
tags:
|
||||
- Inbox
|
||||
operationId: updateAgentBot
|
||||
summary: Add or remove agent bot
|
||||
description: To add an agent bot pass agent_bot id, to remove agent bot from an inbox pass null
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
type: number
|
||||
description: ID of the inbox
|
||||
required: true
|
||||
- name: data
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
agent_bot:
|
||||
type: number
|
||||
required: true
|
||||
description: 'Agent bot ID'
|
||||
responses:
|
||||
204:
|
||||
description: Success
|
||||
404:
|
||||
description: Inbox not found, Agent bot not found
|
||||
403:
|
||||
description: Access denied
|
||||
@@ -9,6 +9,12 @@
|
||||
$ref: ./inboxes/index.yml
|
||||
/accounts/{account_id}/inboxes/{id}:
|
||||
$ref: ./inboxes/update.yml
|
||||
/accounts/{account_id}/inboxes/{id}/set_agent_bot:
|
||||
$ref: ./inboxes/update.yml
|
||||
|
||||
/agent_bots:
|
||||
$ref: ./agent_bots/index.yml
|
||||
|
||||
|
||||
# Conversations
|
||||
/accounts/{account_id}/conversations:
|
||||
|
||||
Reference in New Issue
Block a user