Files
NodeBB/public/openapi/write/users/uid/mute.yaml
Julian Lam e395fb0919 fix 14064 (#14184)
* **feat**: add support for setting watch state via category ID and member UID in route params

* **feat**: update category watch/privilege routes and logic to use `member` param instead of `uid`/`member` body field

* **feat**: add support for unfollowing via actor parameter in category routes

* **feat**: add deprecation warnings for legacy category routes and refactor privilege fetching to inline async call

* docs: add openapi specs for new category routes with path parameters

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* fix: some minor errors in file paths

* feat: support path extraction from req.query in assert.path middleware

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* feat: support message from both query and body in removeQueuedPost

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* fix: remove ai-added check that path is defined, it is not required

* fix: send message as query param instead of in body, when rejecting queued post

* lint: comma dangle

* `feat(openapi): add optional query parameter support for topic delete endpoints`

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* feat: add query parameter and make request body optional for topic thumbnail deletion

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* feat: support query params for thumb path and crosspost id in topics endpoints

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* feat: add query params for mute/unmute reason and timestamp

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* docs: update unmute API to support query params for reason and until timestamp

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* docs: update unmute endpoint to support reason via request body

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* feat: add reason parameter support to users.unmute

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>

* feat: allow unban reason to be sent via req.query

* fix: timestamps are unix timestamps not 8601

* docs: mute shouldn't have been updated

* chore: remove deprecation warnings

---------

Co-authored-by: aider (ollama/ministral-3:8b) <aider@aider.chat>
2026-04-20 09:54:49 -04:00

80 lines
1.8 KiB
YAML

put:
tags:
- users
summary: mute a user
parameters:
- in: path
name: uid
schema:
type: integer
required: true
description: uid of the user to mute
example: 2
requestBody:
content:
application/json:
schema:
type: object
properties:
until:
type: number
description: UNIX timestamp of the mute expiry
example: 1585775608076
reason:
type: string
example: the reason for the mute
responses:
'200':
description: successfully muted user
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
type: object
delete:
tags:
- users
summary: unmute a user
parameters:
- in: path
name: uid
schema:
type: integer
required: true
description: uid of the user to unmute
example: 2
- name: reason
in: query
schema:
type: string
nullable: true
description: Reason for the unmute
example: Reason for the unmute
requestBody:
content:
application/json:
schema:
type: object
properties:
reason:
type: string
nullable: true
description: Reason for the unmute
example: Reason for the unmute
responses:
'200':
description: successfully unmuted user
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
type: object