mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-26 18:30:20 +01:00
33 lines
972 B
YAML
33 lines
972 B
YAML
put:
|
|
tags:
|
|
- chats
|
|
summary: sort public chat rooms
|
|
description: This operation sorts the publicly available chat rooms. This is a privileged function; only superadmins can call it.
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
roomIds:
|
|
type: array
|
|
description: A list of room ids.
|
|
example: [1]
|
|
scores:
|
|
type: array
|
|
description: A list of sort orders associated with the passed-in `roomIds`
|
|
example: [0]
|
|
responses:
|
|
'200':
|
|
description: Public chat rooms successfully re-ordered.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../../components/schemas/Status.yaml#/Status
|
|
response:
|
|
type: object
|
|
properties: {} |