2020-04-07 05:11:18 +00:00
|
|
|
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:
|
2021-09-04 12:26:46 +00:00
|
|
|
- $ref: '#/parameters/account_id'
|
2020-04-07 05:11:18 +00:00
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
type: number
|
|
|
|
description: ID of the inbox
|
|
|
|
required: true
|
|
|
|
- name: data
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: object
|
2021-11-17 13:25:15 +00:00
|
|
|
required:
|
|
|
|
- agent_bot
|
2020-04-07 05:11:18 +00:00
|
|
|
properties:
|
|
|
|
agent_bot:
|
|
|
|
type: number
|
|
|
|
description: 'Agent bot ID'
|
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Success
|
|
|
|
404:
|
|
|
|
description: Inbox not found, Agent bot not found
|
|
|
|
403:
|
|
|
|
description: Access denied
|