2020-02-23 19:21:31 +00:00
|
|
|
post:
|
2020-03-03 19:11:21 +00:00
|
|
|
tags:
|
|
|
|
- Conversation
|
|
|
|
operationId: conversationToggleStatus
|
2020-02-23 19:21:31 +00:00
|
|
|
summary: Toggle Status
|
|
|
|
description: Toggles the status of the conversation between open and resolved
|
2020-06-25 18:05:16 +00:00
|
|
|
security:
|
|
|
|
- userApiKey: []
|
|
|
|
- agentBotApiKey: []
|
2020-02-23 19:21:31 +00:00
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
type: number
|
2020-03-11 10:49:13 +00:00
|
|
|
description: ID of the conversation
|
2020-02-23 19:21:31 +00:00
|
|
|
required: true
|
2020-03-11 10:49:13 +00:00
|
|
|
- name: data
|
|
|
|
in: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
status:
|
|
|
|
type: string
|
2020-06-02 18:20:39 +00:00
|
|
|
enum: ["open", "resolved", "bot"]
|
2020-03-11 10:49:13 +00:00
|
|
|
required: true
|
|
|
|
description: The status of the conversation
|
2020-02-23 19:21:31 +00:00
|
|
|
responses:
|
2020-03-11 10:49:13 +00:00
|
|
|
200:
|
2020-02-23 19:21:31 +00:00
|
|
|
description: Success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/conversation_status_toggle'
|
|
|
|
404:
|
|
|
|
description: Conversation not found
|
|
|
|
403:
|
|
|
|
description: Access denied
|