Chatwoot/swagger/paths/conversation/labels.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

get:
tags:
2020-03-11 10:49:13 +00:00
- ConversationLabels
operationId: conversationLabelsList
summary: List Labels
description: Lists all the labels of a conversation
parameters:
- name: id
in: path
type: number
2020-03-11 10:49:13 +00:00
description: ID of the conversation
required: true
responses:
200:
description: Success
schema:
$ref: '#/definitions/conversation_labels'
404:
description: Conversation not found
403:
description: Access denied
post:
tags:
2020-03-11 10:49:13 +00:00
- ConversationLabels
operationId: conversationAddLabels
summary: Add Labels
description: Creates new labels and associates it with the conversation
parameters:
- name: id
in: path
type: number
2020-03-11 10:49:13 +00:00
description: ID of the conversation
required: true
- name: data
in: body
required: true
schema:
type: object
properties:
labels:
type: array
2020-03-11 10:49:13 +00:00
description: 'Array of labels'
properties:
type: string
responses:
2020-03-11 10:49:13 +00:00
200:
description: Success
schema:
$ref: '#/definitions/conversation_labels'
404:
description: Conversation not found
403:
description: Access denied