mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-13 02:52:52 +01:00
40 lines
922 B
YAML
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
|