You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
put:
|
|
tags:
|
|
- chats
|
|
summary: pin a chat message
|
|
description: This operation pins an existing chat message in a chat room
|
|
parameters:
|
|
- in: path
|
|
name: roomId
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: a valid chat room id
|
|
example: 1
|
|
- in: path
|
|
name: mid
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: a valid chat message id
|
|
example: 1
|
|
responses:
|
|
'200':
|
|
description: Chat message successfully pinned
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../../../../../components/schemas/Status.yaml#/Status
|
|
response:
|
|
type: object
|
|
properties: {}
|
|
delete:
|
|
tags:
|
|
- chats
|
|
summary: unpin a chat message
|
|
description: This operation unpins a chat message in a room
|
|
parameters:
|
|
- in: path
|
|
name: roomId
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: a valid chat room id
|
|
example: 1
|
|
- in: path
|
|
name: mid
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: a valid chat message id
|
|
example: 1
|
|
responses:
|
|
'200':
|
|
description: Chat message successfully unpinned
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../../../../../components/schemas/Status.yaml#/Status
|
|
response:
|
|
type: object
|
|
properties: {} |