2020-02-23 19:21:31 +00:00
|
|
|
get:
|
2020-03-03 19:11:21 +00:00
|
|
|
tags:
|
2020-03-11 10:49:13 +00:00
|
|
|
- ConversationLabels
|
2020-03-03 19:11:21 +00:00
|
|
|
operationId: conversationLabelsList
|
2020-02-23 19:21:31 +00:00
|
|
|
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
|
2020-02-23 19:21:31 +00:00
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/conversation_labels'
|
|
|
|
404:
|
|
|
|
description: Conversation not found
|
|
|
|
403:
|
|
|
|
description: Access denied
|
|
|
|
|
|
|
|
post:
|
2020-03-03 19:11:21 +00:00
|
|
|
tags:
|
2020-03-11 10:49:13 +00:00
|
|
|
- ConversationLabels
|
2020-03-03 19:11:21 +00:00
|
|
|
operationId: conversationAddLabels
|
|
|
|
summary: Add Labels
|
|
|
|
description: Creates new labels and associates it with the conversation
|
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
|
|
|
|
- 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'
|
2020-02-23 19:21:31 +00:00
|
|
|
properties:
|
|
|
|
type: string
|
|
|
|
responses:
|
2020-03-11 10:49:13 +00:00
|
|
|
200:
|
2020-02-23 19:21:31 +00:00
|
|
|
description: Success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/conversation_labels'
|
|
|
|
404:
|
|
|
|
description: Conversation not found
|
|
|
|
403:
|
|
|
|
description: Access denied
|