2026-01-11 14:38:14 -05:00
|
|
|
post:
|
|
|
|
|
tags:
|
2026-01-11 14:43:24 -05:00
|
|
|
- posts
|
2026-01-11 14:38:14 -05:00
|
|
|
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
|