Chatwoot/swagger/paths/conversation/toggle_status.yml

33 lines
790 B
YAML
Raw Normal View History

post:
tags:
- Conversation
operationId: conversationToggleStatus
summary: Toggle Status
description: Toggles the status of the conversation between open and resolved
parameters:
- name: id
in: path
type: number
2020-03-11 10:49:13 +00:00
description: ID of the conversation
required: true
2020-03-11 10:49:13 +00:00
- name: data
in: body
required: true
schema:
type: object
properties:
status:
type: string
enum: ["open", "resolved"]
required: true
description: The status of the conversation
responses:
2020-03-11 10:49:13 +00:00
200:
description: Success
schema:
$ref: '#/definitions/conversation_status_toggle'
404:
description: Conversation not found
403:
description: Access denied