Files
NodeBB/public/openapi/write/posts/owner.yaml
Barış Uşaklı 7b793527f9 Change owner rest route (#13881)
* fix: dont use sass-embedded on freebsd, #13867

* fix: #13715, dont reduce hardcap if usersPerPage is < 50

* fix: closes #13872, use translator.compile for notification text

so commas don't cause issues

* fix: remove bidiControls from notification.bodyShort

* refactor: move change owner call to rest api

deprecate socket method

* fix spec

* test: one more fix

* test: add 404

* test: fix tests :rage1:

* test: update test to use new method
2026-01-11 14:38:14 -05:00

40 lines
1005 B
YAML

post:
tags:
- Posts
summary: Change owner of one or more posts
description: Change the owner of the posts identified by pids to the user uid.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- pids
- uid
properties:
pids:
type: array
items:
type: integer
description: Array of post IDs to change owner for
example: [2]
uid:
type: integer
description: Target user id
example: 1
responses:
'200':
description: Owner changed successfully
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../components/schemas/Status.yaml#/Status
response:
type: object
'404':
description: Post not found