mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Set the folder of an item
This commit is contained in:
@ -1365,6 +1365,31 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BasicResult"
|
||||
/sec/item/{id}/folder:
|
||||
put:
|
||||
tags: [ Item ]
|
||||
summary: Set a folder for this item.
|
||||
description: |
|
||||
Updates the folder property for this item to "place" the item
|
||||
into a folder. If the request contains an empty object or an
|
||||
`id` property of `null`, the item is moved into the "public"
|
||||
or "root" folder.
|
||||
security:
|
||||
- authTokenHeader: []
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/OptionalId"
|
||||
responses:
|
||||
200:
|
||||
description: Ok
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BasicResult"
|
||||
/sec/item/{id}/corrOrg:
|
||||
put:
|
||||
tags: [ Item ]
|
||||
@ -3167,6 +3192,8 @@ components:
|
||||
$ref: "#/components/schemas/IdName"
|
||||
inReplyTo:
|
||||
$ref: "#/components/schemas/IdName"
|
||||
folder:
|
||||
$ref: "#/components/schemas/IdName"
|
||||
dueDate:
|
||||
type: integer
|
||||
format: date-time
|
||||
|
Reference in New Issue
Block a user