Allow to change position of attachments

This commit is contained in:
Eike Kettner
2020-05-24 17:29:28 +02:00
parent 6807ce4d2f
commit 3cb738568f
6 changed files with 123 additions and 1 deletions

View File

@ -1239,6 +1239,30 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ItemProposals"
/sec/item/{itemId}/attachment/movebefore:
post:
tags: [ Item ]
summary: Reorder attachments within an item
description: |
Moves the `source` attachment before the `target` attachment,
such that `source` becomes the immediate neighbor of `target`
with a lower position.
security:
- authTokenHeader: []
parameters:
- $ref: "#/components/parameters/itemId"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/MoveAttachment"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/BasicResult"
/sec/attachment/{id}:
delete:
@ -1945,6 +1969,19 @@ paths:
components:
schemas:
MoveAttachment:
description: |
Data to move an attachment to another position.
required:
- source
- target
properties:
source:
type: string
format: ident
target:
type: string
format: ident
ScanMailboxSettingsList:
description: |
A list of scan-mailbox tasks.