fabc6c87af
Made the swagger documentation urls short and readable.
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
get:
|
|
tags:
|
|
- Conversation
|
|
operationId: conversationLabelsList
|
|
summary: List Labels
|
|
description: Lists all the labels of a conversation
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
type: number
|
|
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:
|
|
- Conversation
|
|
operationId: conversationAddLabels
|
|
summary: Add Labels
|
|
description: Creates new labels and associates it with the conversation
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
type: number
|
|
description: id of the conversation
|
|
required: true
|
|
- name: data
|
|
in: body
|
|
required: true
|
|
schema:
|
|
type: object
|
|
properties:
|
|
labels:
|
|
type: array
|
|
description: 'array of labels'
|
|
properties:
|
|
type: string
|
|
responses:
|
|
204:
|
|
description: Success
|
|
schema:
|
|
$ref: '#/definitions/conversation_labels'
|
|
404:
|
|
description: Conversation not found
|
|
403:
|
|
description: Access denied
|