Chatwoot/swagger/paths/inboxes/update.yml

60 lines
1.8 KiB
YAML
Raw Normal View History

2020-03-11 10:49:13 +00:00
patch:
tags:
- Inbox
operationId: updateInbox
summary: Update Inbox
description: Add avatar and disable auto assignment for an inbox
2020-03-11 10:49:13 +00:00
parameters:
- $ref: '#/parameters/account_id'
2020-03-11 10:49:13 +00:00
- name: id
in: path
type: number
description: ID of the inbox
required: true
- name: data
in: body
required: true
schema:
type: object
properties:
name:
type: string
description: The name of the inbox
2020-03-11 10:49:13 +00:00
enable_auto_assignment:
type: boolean
required: true
description: 'Enable Auto Assignment'
avatar:
type: file
required: false
description: 'Image file for avatar'
channel:
type: object
properties:
website_url:
type: string
description: URL at which the widget will be loaded
welcome_title:
type: string
description: Welcome title to be displayed on the widget
welcome_tagline:
type: string
description: Welcome tagline to be displayed on the widget
agent_away_message:
type: string
description: A message which will be sent if there is not agent available. This is not available if agentbot is connected
widget_color:
type: string
description: A Hex-color string used to customize the widget
2020-03-11 10:49:13 +00:00
responses:
200:
description: Success
schema:
type: object
description: 'Updated inbox object'
$ref: '#/definitions/inbox'
404:
description: Inbox not found
403:
description: Access denied