Files
NodeBB/public/openapi/write/posts/pid/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
922 B
YAML

put:
summary: Change owner of a post
description: Change the owner (uid) of a post identified by pid.
tags:
- Posts
parameters:
- name: pid
in: path
description: Post id
required: true
schema:
type: integer
example: 2
requestBody:
description: New owner payload
required: true
content:
application/json:
schema:
type: object
required:
- uid
properties:
uid:
type: integer
description: User id of the new owner
example: 2
responses:
'200':
description: Owner changed successfully
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
type: object