2019-07-17 20:03:10 +00:00
|
|
|
openapi: 3.0.0
|
|
|
|
|
|
|
|
info:
|
|
|
|
title: Docspell
|
2021-09-23 17:48:36 +00:00
|
|
|
version: 0.28.0-SNAPSHOT
|
2019-07-22 22:53:30 +00:00
|
|
|
description: |
|
2021-06-12 17:12:52 +00:00
|
|
|
This is the remote API to Docspell. Docspell is a free document
|
|
|
|
management system focused on small groups or families.
|
|
|
|
|
|
|
|
The routes can be divided into protected, unprotected routes and
|
|
|
|
admin routes. The unprotected, or open routes are at `/open/*`
|
|
|
|
while the protected routes are at `/sec/*` and admin routes are at
|
|
|
|
`/admin/*`. Open routes don't require authenticated access and can
|
|
|
|
be used by any user. The protected routes require an authenticated
|
|
|
|
user. The admin routes require a special http header with a value
|
|
|
|
from the config file. They are disabled by default, you need to
|
|
|
|
specify a secret in order to enable admin routes.
|
|
|
|
license:
|
2021-09-22 09:55:56 +00:00
|
|
|
name: AGPLv3
|
|
|
|
url: https://spdx.org/licenses/AGPL-3.0-or-later.html
|
2021-06-12 17:12:52 +00:00
|
|
|
|
|
|
|
externalDocs:
|
|
|
|
description: Docspell Homepage
|
|
|
|
url: https://docspell.org
|
2019-07-17 20:03:10 +00:00
|
|
|
|
|
|
|
servers:
|
|
|
|
- url: /api/v1
|
|
|
|
description: Current host
|
|
|
|
|
|
|
|
paths:
|
2019-07-22 22:53:30 +00:00
|
|
|
/api/info/version:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "api-info-version"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Information ]
|
|
|
|
summary: Get version information.
|
|
|
|
description: |
|
|
|
|
Returns information about this software.
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/VersionInfo"
|
2021-09-06 09:41:40 +00:00
|
|
|
|
2019-07-17 20:03:10 +00:00
|
|
|
/open/auth/login:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "open-auth-login"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Authentication ]
|
2019-07-17 20:03:10 +00:00
|
|
|
summary: Authenticate with account name and password.
|
|
|
|
description: |
|
|
|
|
Authenticate with account name and password. The account name
|
|
|
|
is comprised of the collective id and user id separated by
|
|
|
|
slash, backslash or whitespace.
|
|
|
|
|
|
|
|
If successful, an authentication token is returned that can be
|
|
|
|
used for subsequent calls to protected routes.
|
2021-08-31 19:29:07 +00:00
|
|
|
|
|
|
|
If the account has two-factor auth enabled, the returned token
|
|
|
|
must be used to supply the second factor.
|
2019-07-17 20:03:10 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/UserPass"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/AuthResult"
|
2021-08-31 19:29:07 +00:00
|
|
|
/open/auth/two-factor:
|
|
|
|
post:
|
|
|
|
operationId: "open-auth-two-factor"
|
|
|
|
tags: [ Authentication ]
|
|
|
|
summary: Provide the second factor to finalize authentication
|
|
|
|
description: |
|
|
|
|
After a login with account name and password, a second factor
|
|
|
|
must be supplied (only for accounts that enabled it) in order
|
|
|
|
to complete login.
|
|
|
|
|
|
|
|
If the code is correct, a new token is returned that can be
|
|
|
|
used for subsequent calls to protected routes.
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/SecondFactor"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/AuthResult"
|
2021-09-06 09:41:40 +00:00
|
|
|
/open/auth/openid/{providerId}:
|
|
|
|
get:
|
|
|
|
operationId: "open-auth-openid"
|
|
|
|
tags: [ Authentication ]
|
|
|
|
summary: Authenticates via OIDC at the external provider given by its id
|
|
|
|
description: |
|
|
|
|
Initiates the ["Authorization Code
|
|
|
|
Flow"](https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth)
|
|
|
|
as described in the OpenID Connect specification. This only is
|
|
|
|
enabled, if an external provider has been configured correctly
|
|
|
|
in the config file.
|
|
|
|
|
|
|
|
This will redirect to the external provider to authenticate
|
|
|
|
the user. Once authenticated, the user is redirected back to
|
|
|
|
the `/resume` endpoint.
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/providerId"
|
|
|
|
responses:
|
|
|
|
302:
|
|
|
|
description: Found. Redirect to external authentication provider
|
|
|
|
200:
|
|
|
|
description: Not used, is only here because openid requires it
|
|
|
|
/open/auth/openid/{providerId}/resume:
|
|
|
|
get:
|
|
|
|
operationId: "open-auth-openid-resume"
|
|
|
|
tags: [ Authentication ]
|
|
|
|
summary: The callback URL for the authentication provider
|
|
|
|
description: |
|
|
|
|
This URL is used to redirect the user back to the application
|
|
|
|
by the authentication provider after login is completed.
|
|
|
|
|
|
|
|
This will then try to find (or create) the account at docspell
|
|
|
|
using information about the user provided by the
|
|
|
|
authentication provider. If the required information cannot be
|
|
|
|
found, the user cannot be logged into the application.
|
|
|
|
|
|
|
|
If the process completed successfully, this endpoint redirects
|
|
|
|
into the web application which will take over from here.
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/providerId"
|
|
|
|
responses:
|
|
|
|
303:
|
|
|
|
description: See Other. Redirect to the webapp
|
|
|
|
200:
|
|
|
|
description: Not used, is only here because openid requires it
|
2021-08-31 19:29:07 +00:00
|
|
|
|
2019-12-31 22:17:07 +00:00
|
|
|
/open/checkfile/{id}/{checksum}:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "open-checkfile-checksum-by-id"
|
2019-12-31 22:17:07 +00:00
|
|
|
tags: [ Upload ]
|
2021-07-17 16:01:18 +00:00
|
|
|
summary: Check if a file is in docspell (via source).
|
2019-12-31 22:17:07 +00:00
|
|
|
description: |
|
|
|
|
Checks if a file with the given SHA-256 checksum is in
|
|
|
|
docspell. The id is a *source id* configured by a collective.
|
|
|
|
|
|
|
|
The result shows all items that contains a file with the given
|
|
|
|
checksum.
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
- $ref: "#/components/parameters/checksum"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CheckFileResult"
|
2019-07-22 22:53:30 +00:00
|
|
|
/open/upload/item/{id}:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "open-upload-new-item-by-source"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Upload ]
|
2021-07-17 16:01:18 +00:00
|
|
|
summary: Upload files to docspell (via source).
|
2019-07-22 22:53:30 +00:00
|
|
|
description: |
|
|
|
|
Upload a file to docspell for processing. The id is a *source
|
|
|
|
id* configured by a collective. Files are submitted for
|
|
|
|
processing which eventually resuts in an item in the inbox of
|
|
|
|
the corresponding collective.
|
|
|
|
|
|
|
|
The request must be a `multipart/form-data` request, where the
|
|
|
|
first part has name `meta`, is optional and may contain upload
|
|
|
|
metadata as JSON. Checkout the structure `ItemUploadMeta` at
|
|
|
|
the end if it is not shown here. Other parts specify the
|
|
|
|
files. Multiple files can be specified, but at least on is
|
|
|
|
required.
|
|
|
|
|
|
|
|
The upload meta data can be used to tell, whether multiple
|
|
|
|
files are one item, or if each file should become a single
|
|
|
|
item. By default, each file will be a one item.
|
2020-05-23 17:42:36 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
multipart/form-data:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
meta:
|
|
|
|
$ref: "#/components/schemas/ItemUploadMeta"
|
|
|
|
file:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/open/upload/item/{itemId}/{id}:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "open-upload-to-item-by-source"
|
2020-05-23 17:42:36 +00:00
|
|
|
tags: [ Upload ]
|
2021-07-17 16:01:18 +00:00
|
|
|
summary: Upload files to an existing item (via source).
|
2020-05-23 17:42:36 +00:00
|
|
|
description: |
|
|
|
|
Upload a file to docspell for processing. The id is a *source
|
|
|
|
id* configured by a collective. Files are submitted for
|
|
|
|
processing which eventually resuts in an item in the inbox of
|
|
|
|
the corresponding collective. This endpoint associates the
|
|
|
|
files to an existing item identified by its `itemId`.
|
2019-07-22 22:53:30 +00:00
|
|
|
|
2020-05-23 17:42:36 +00:00
|
|
|
The request must be a `multipart/form-data` request, where the
|
|
|
|
first part has name `meta`, is optional and may contain upload
|
|
|
|
metadata as JSON. Checkout the structure `ItemUploadMeta` at
|
|
|
|
the end if it is not shown here. Other parts specify the
|
|
|
|
files. Multiple files can be specified, but at least on is
|
|
|
|
required.
|
2019-07-22 22:53:30 +00:00
|
|
|
|
2020-05-23 17:42:36 +00:00
|
|
|
Upload meta data is ignored.
|
2019-07-22 22:53:30 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
2020-05-23 17:42:36 +00:00
|
|
|
- $ref: "#/components/parameters/itemId"
|
2020-05-27 21:40:50 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
multipart/form-data:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
meta:
|
|
|
|
$ref: "#/components/schemas/ItemUploadMeta"
|
|
|
|
file:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2021-01-04 15:32:54 +00:00
|
|
|
/admin/fts/reIndexAll:
|
2020-06-22 19:00:34 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "admin-fts-reindex-all"
|
2021-01-04 15:32:54 +00:00
|
|
|
tags: [Full-Text Index, Admin]
|
2020-06-22 19:00:34 +00:00
|
|
|
summary: Re-creates the full-text index.
|
|
|
|
description: |
|
|
|
|
Clears the full-text index and inserts all data from the
|
|
|
|
database. This migh take a while to complete. The response
|
|
|
|
returns immediately. A task is submitted that will be executed
|
|
|
|
by a job executor. Note that this affects all data of all
|
|
|
|
collectives.
|
|
|
|
|
2021-01-04 15:32:54 +00:00
|
|
|
This is an admin route, so you need to provide the secret from
|
|
|
|
the config file as header `Docspell-Admin-Secret`.
|
|
|
|
security:
|
|
|
|
- adminHeader: []
|
2020-06-22 19:00:34 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/fts/reIndex:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-fts-reindex"
|
2020-06-22 19:00:34 +00:00
|
|
|
tags: [Full-Text Index]
|
|
|
|
summary: Re-creates the full-text index for the current collective
|
|
|
|
description: |
|
|
|
|
Clears the full-text index for all data belonging to the
|
|
|
|
current collective and inserts the data from the database. The
|
|
|
|
response is immediately returned and a task is submitted that
|
|
|
|
will be executed by a job executor.
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2019-12-31 22:17:07 +00:00
|
|
|
/sec/checkfile/{checksum}:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-checkfile-by-checksum"
|
2019-12-31 22:17:07 +00:00
|
|
|
tags: [ Upload ]
|
2021-07-17 16:01:18 +00:00
|
|
|
summary: Check if a file is in docspell (authenticated).
|
2019-12-31 22:17:07 +00:00
|
|
|
description: |
|
|
|
|
Checks if a file with the given SHA-256 checksum is in
|
|
|
|
docspell.
|
|
|
|
|
|
|
|
The result shows all items that contains a file with the given
|
|
|
|
checksum.
|
2020-01-10 22:41:03 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2019-12-31 22:17:07 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/checksum"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CheckFileResult"
|
2020-10-19 11:45:14 +00:00
|
|
|
/sec/upload/item:
|
2019-07-22 22:53:30 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-upload-new-item"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Upload ]
|
2021-07-17 16:01:18 +00:00
|
|
|
summary: Upload files to docspell (authenticated).
|
2019-07-22 22:53:30 +00:00
|
|
|
description: |
|
|
|
|
Upload files to docspell for processing. This route is meant
|
|
|
|
for authenticated users that upload files to their account.
|
|
|
|
|
|
|
|
Everything else is the same as with the
|
|
|
|
`/open/upload/item/{id}` endpoint.
|
|
|
|
|
|
|
|
The request must be a "multipart/form-data" request, where the
|
|
|
|
first part is optional and may contain upload metadata as
|
|
|
|
JSON. Other parts specify the files. Multiple files can be
|
2020-10-19 11:45:14 +00:00
|
|
|
specified, but at least one is required.
|
2019-07-22 22:53:30 +00:00
|
|
|
|
|
|
|
The upload meta data can be used to tell, whether multiple
|
|
|
|
files are one item, or if each file should become a single
|
|
|
|
item. By default, each file will be a one item.
|
2020-05-23 17:42:36 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
multipart/form-data:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
meta:
|
|
|
|
$ref: "#/components/schemas/ItemUploadMeta"
|
|
|
|
file:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/upload/{itemId}:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-upload-to-item"
|
2020-05-23 17:42:36 +00:00
|
|
|
tags: [ Upload ]
|
2021-07-17 16:01:18 +00:00
|
|
|
summary: Upload files to an existing item (authenticated).
|
2020-05-23 17:42:36 +00:00
|
|
|
description: |
|
|
|
|
Upload files to docspell for processing. This route is meant
|
|
|
|
for authenticated users that upload files to their account.
|
|
|
|
This endpoint will associate the files to an existing item
|
|
|
|
identified by its `itemId`.
|
2019-07-22 22:53:30 +00:00
|
|
|
|
2020-05-23 17:42:36 +00:00
|
|
|
Everything else is the same as with the
|
|
|
|
`/open/upload/item/{itemId}/{id}` endpoint.
|
2019-07-22 22:53:30 +00:00
|
|
|
|
2020-05-23 17:42:36 +00:00
|
|
|
The request must be a "multipart/form-data" request, where the
|
|
|
|
first part is optional and may contain upload metadata as
|
|
|
|
JSON. Other parts specify the files. Multiple files can be
|
|
|
|
specified, but at least on is required.
|
2019-07-22 22:53:30 +00:00
|
|
|
|
2020-05-23 17:42:36 +00:00
|
|
|
The upload meta data is ignored, since the item already
|
|
|
|
exists.
|
2020-01-10 22:41:03 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-05-23 17:42:36 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/itemId"
|
2019-07-22 22:53:30 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
multipart/form-data:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
meta:
|
|
|
|
$ref: "#/components/schemas/ItemUploadMeta"
|
|
|
|
file:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-05-27 21:55:45 +00:00
|
|
|
/open/integration/item/{id}:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "open-integration-item-check-collective"
|
2020-06-27 22:08:37 +00:00
|
|
|
tags: [ Integration Endpoint ]
|
|
|
|
summary: Check if integration endpoint is available.
|
2020-05-27 21:55:45 +00:00
|
|
|
description: |
|
|
|
|
Allows to check whether an integration endpoint is enabled for
|
|
|
|
a collective. The collective is given by the `id` parameter.
|
|
|
|
It returns not found (404) if the endpoint is disabled (either
|
|
|
|
globally by an admin or by a specific collective). It returns
|
|
|
|
403 (or 401 if http-basic is enabled) if authorization fails.
|
|
|
|
|
|
|
|
The response body is empty (an empty json object).
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
404:
|
|
|
|
description: Not Found
|
|
|
|
403:
|
|
|
|
description: Forbidden
|
|
|
|
401:
|
|
|
|
description: Unauthorized
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "open-integration-item-upload"
|
2021-07-17 16:01:18 +00:00
|
|
|
tags: [ Integration Endpoint, Upload ]
|
|
|
|
summary: Upload files to docspell (Integration Endpoint).
|
2020-05-27 21:55:45 +00:00
|
|
|
description: |
|
|
|
|
Upload a file to docspell for processing. The id is a
|
|
|
|
*collective name*. This route only exists, if enabled by an
|
|
|
|
admin in the configuration. The route might be protected by
|
|
|
|
different methods, all configurable via the configuration:
|
|
|
|
|
|
|
|
- A specific header must be prestent
|
|
|
|
- username/password via HTTP Basic mechanism
|
|
|
|
- a specific source ip
|
|
|
|
|
|
|
|
Files are submitted for processing to the specified
|
|
|
|
collective, which eventually resuts in an item in their inbox.
|
|
|
|
|
|
|
|
The request must be a `multipart/form-data` request, where the
|
|
|
|
first part has name `meta`, is optional and may contain upload
|
|
|
|
metadata as JSON. Checkout the structure `ItemUploadMeta` at
|
|
|
|
the end if it is not shown here. Other parts specify the
|
|
|
|
files. Multiple files can be specified, but at least on is
|
|
|
|
required.
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
multipart/form-data:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
meta:
|
|
|
|
$ref: "#/components/schemas/ItemUploadMeta"
|
|
|
|
file:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-06-27 22:08:37 +00:00
|
|
|
/open/integration/checkfile/{id}/{checksum}:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "open-integration-checkfile-by-checksum"
|
2021-07-17 16:01:18 +00:00
|
|
|
tags: [ Integration Endpoint, Upload ]
|
|
|
|
summary: Check if a file is in docspell (Integration Endpoint).
|
2020-06-27 22:08:37 +00:00
|
|
|
description: |
|
|
|
|
Checks if a file with the given SHA-256 checksum is in
|
|
|
|
docspell. The `id` is the *collective name*. This route only
|
|
|
|
exists, if it is enabled in the configuration file.
|
|
|
|
|
|
|
|
The result shows all items that contains a file with the given
|
|
|
|
checksum.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
- $ref: "#/components/parameters/checksum"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CheckFileResult"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/open/signup/register:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "open-signup-register"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Registration ]
|
|
|
|
summary: Register a new account.
|
|
|
|
description: |
|
|
|
|
Create a new account by creating a collective and user.
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Registration"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/open/signup/newinvite:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "open-signup-newinvite"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Registration ]
|
|
|
|
summary: Generate a new invite.
|
|
|
|
description: |
|
|
|
|
When signup mode is set to "invite", docspell requires an
|
|
|
|
invitation key when signing up. These keys can be created
|
|
|
|
here. Creating such keys requires an admin role, and since
|
|
|
|
docspell has no such concept, a password from the
|
|
|
|
configuration file is required for this action.
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/GenInvite"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/InviteResult"
|
2019-07-17 20:03:10 +00:00
|
|
|
/sec/auth/session:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-auth-session"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Authentication ]
|
2019-07-17 20:03:10 +00:00
|
|
|
summary: Authentication with a token
|
|
|
|
description: |
|
|
|
|
Authenticate with a token. This can be used to get a new
|
|
|
|
authentication token based on another valid one.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/AuthResult"
|
|
|
|
/sec/auth/logout:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-auth-logout"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Authentication ]
|
2019-07-17 20:03:10 +00:00
|
|
|
summary: Logout.
|
|
|
|
description: |
|
|
|
|
This route informs the server about a logout. This is not
|
|
|
|
strictly necessary.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
2020-08-08 05:56:55 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/tag:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-tag-get-all"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Tags ]
|
|
|
|
summary: Get a list of tags
|
|
|
|
description: |
|
2021-08-24 19:35:57 +00:00
|
|
|
Return a list of all configured tags. The `sort` query
|
|
|
|
parameter is optional and can specify how the list is sorted.
|
|
|
|
Possible values are: `name`, `-name`, `category`, `-category`.
|
2019-07-22 22:53:30 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-01-02 18:59:46 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/q"
|
2021-08-24 19:35:57 +00:00
|
|
|
- $ref: "#/components/parameters/sort"
|
2019-07-22 22:53:30 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/TagList"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-tag-new"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Tags ]
|
|
|
|
summary: Create a new tag.
|
|
|
|
description: |
|
|
|
|
Create a new tag. If a tag with this name already exists, an
|
|
|
|
error is returned. The id in the input structure is ignored.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Tag"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-tag-edit"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Tags ]
|
|
|
|
summary: Change an existing tag.
|
|
|
|
description: |
|
|
|
|
Changes an existing tag. The tag is looked up by its id and
|
|
|
|
all properties are changed as given.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Tag"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/tag/{id}:
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-tag-delete-by-id"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Tags ]
|
|
|
|
summary: Delete a tag.
|
|
|
|
description: |
|
|
|
|
Deletes a tag. This also removes this tags from all items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/organization:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-org-get-all"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Organization ]
|
|
|
|
summary: Get a list of organizations.
|
|
|
|
description: |
|
2021-08-24 19:35:57 +00:00
|
|
|
Return a list of all organizations. Only name and id are
|
|
|
|
returned. If `full` is specified, the list contains all
|
|
|
|
organization data. The `sort` parameter can be either `name`
|
|
|
|
or `-name` to specify the order.
|
2019-07-22 22:53:30 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/full"
|
2020-01-02 18:59:46 +00:00
|
|
|
- $ref: "#/components/parameters/q"
|
2021-08-24 19:35:57 +00:00
|
|
|
- $ref: "#/components/parameters/sort"
|
2019-07-22 22:53:30 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
oneOf:
|
|
|
|
- $ref: "#/components/schemas/ReferenceList"
|
|
|
|
- $ref: "#/components/schemas/OrganizationList"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-org-new"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Organization ]
|
|
|
|
summary: Create a new organization.
|
|
|
|
description: |
|
|
|
|
Create a new organizaion. If an organization with this name already exists, an
|
|
|
|
error is returned. The id attribute of the request structure is ignored.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Organization"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-org-edit"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Organization ]
|
|
|
|
summary: Change an existing organization.
|
|
|
|
description: |
|
|
|
|
Changes an existing organization. The organization is looked up by its id and
|
|
|
|
all properties are changed as given.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Organization"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/organization/{id}:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-org-details"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Organization ]
|
|
|
|
summary: Get a list of organizations.
|
|
|
|
description: |
|
|
|
|
Return details about an organization.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Organization"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-org-delete-by-id"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Organization ]
|
|
|
|
summary: Delete a organization by its id.
|
|
|
|
description: |
|
|
|
|
Deletes an organization.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/person:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-persion-get-all"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Person ]
|
|
|
|
summary: Get a list of persons.
|
|
|
|
description: |
|
2021-08-24 19:35:57 +00:00
|
|
|
Return a list of all persons. Only name and id are returned
|
|
|
|
unless the `full` parameter is specified. The `sort` parameter
|
|
|
|
can be used to control the order of the result. Use one of:
|
|
|
|
`name`, `-name`, `org`, `-org`. Note that order by `org` only
|
|
|
|
works when retrieving the full list.
|
2019-07-22 22:53:30 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/full"
|
2020-01-02 18:59:46 +00:00
|
|
|
- $ref: "#/components/parameters/q"
|
2021-08-24 19:35:57 +00:00
|
|
|
- $ref: "#/components/parameters/sort"
|
2019-07-22 22:53:30 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
oneOf:
|
|
|
|
- $ref: "#/components/schemas/ReferenceList"
|
|
|
|
- $ref: "#/components/schemas/PersonList"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-person-new"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Person ]
|
|
|
|
summary: Create a new person.
|
|
|
|
description: |
|
|
|
|
Create a new organizaion. If an person with this name already exists, an
|
|
|
|
error is returned. The id attribute of the request structure is ignored.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Person"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-person-edit"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Person ]
|
|
|
|
summary: Change an existing person.
|
|
|
|
description: |
|
|
|
|
Changes an existing person. The person is looked up by its id and
|
|
|
|
all properties are changed as given.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Person"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/person/{id}:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-person-details"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Person ]
|
|
|
|
summary: Get person details.
|
|
|
|
description: |
|
|
|
|
Return details about an person.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Person"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-person-delete-by-id"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Person ]
|
|
|
|
summary: Delete a person by its id.
|
|
|
|
description: |
|
|
|
|
Deletes an person.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/equipment:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-equip-get-all"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Equipment ]
|
|
|
|
summary: Get a list of equipments
|
|
|
|
description: |
|
2021-08-24 19:35:57 +00:00
|
|
|
Return a list of all configured equipments. The sort query
|
|
|
|
parameter is optional and can be one of `name` or `-name` to
|
|
|
|
sort the list of equipments.
|
2019-07-22 22:53:30 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-01-02 18:59:46 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/q"
|
2021-08-24 19:35:57 +00:00
|
|
|
- $ref: "#/components/parameters/sort"
|
2019-07-22 22:53:30 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/EquipmentList"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-equip-new"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Equipment ]
|
|
|
|
summary: Create a new equipment.
|
|
|
|
description: |
|
|
|
|
Create a new equipment. If a equipment with this name already
|
|
|
|
exists, an error is returned.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Equipment"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-equip-edit"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Equipment ]
|
|
|
|
summary: Change an existing equipment.
|
|
|
|
description: |
|
|
|
|
Changes an existing equipment. The equipment is looked up by
|
|
|
|
its id and all properties are changed as given.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Equipment"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/equipment/{id}:
|
2020-08-06 23:20:26 +00:00
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-equip-details"
|
2020-08-06 23:20:26 +00:00
|
|
|
tags: [ Equipment ]
|
|
|
|
summary: Get details about a single equipment.
|
|
|
|
description: |
|
|
|
|
Loads one equipment by its id.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Equipment"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-equip-delete-by-id"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Equipment ]
|
|
|
|
summary: Delete a equipment.
|
|
|
|
description: |
|
|
|
|
Deletes a equipment. This also removes this equipments from
|
|
|
|
all items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-07-11 09:38:57 +00:00
|
|
|
/sec/folder:
|
2020-07-02 21:11:42 +00:00
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-folder-get-all"
|
2020-07-11 09:38:57 +00:00
|
|
|
tags: [ Folder ]
|
|
|
|
summary: Get a list of folders.
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
Return a list of folders for the current collective.
|
2020-07-02 21:11:42 +00:00
|
|
|
|
2020-07-11 09:38:57 +00:00
|
|
|
All folders are returned, including those not owned by the
|
2020-07-02 21:11:42 +00:00
|
|
|
current user.
|
|
|
|
|
|
|
|
It is possible to restrict the results by a substring match of
|
|
|
|
the name.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/q"
|
2020-07-09 21:23:02 +00:00
|
|
|
- $ref: "#/components/parameters/owning"
|
2020-07-02 21:11:42 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-07-11 09:38:57 +00:00
|
|
|
$ref: "#/components/schemas/FolderList"
|
2020-07-02 21:11:42 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-folder-new"
|
2020-07-11 09:38:57 +00:00
|
|
|
tags: [ Folder ]
|
|
|
|
summary: Create a new folder
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
Create a new folder owned by the current user. If a folder with
|
2020-07-02 21:11:42 +00:00
|
|
|
the same name already exists, an error is thrown.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-07-11 09:38:57 +00:00
|
|
|
$ref: "#/components/schemas/NewFolder"
|
2020-07-02 21:11:42 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-07-07 22:21:48 +00:00
|
|
|
$ref: "#/components/schemas/IdResult"
|
2020-07-11 09:38:57 +00:00
|
|
|
/sec/folder/{id}:
|
2020-07-02 21:11:42 +00:00
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-folder-details"
|
2020-07-11 09:38:57 +00:00
|
|
|
tags: [ Folder ]
|
|
|
|
summary: Get folder details.
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
Return details about a folder.
|
2020-07-02 21:11:42 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-07-11 09:38:57 +00:00
|
|
|
$ref: "#/components/schemas/FolderDetail"
|
2020-07-02 21:11:42 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-folder-edit-name"
|
2020-07-11 09:38:57 +00:00
|
|
|
tags: [ Folder ]
|
|
|
|
summary: Change the name of a folder
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
Changes the name of a folder. The new name must not exists.
|
2020-07-02 21:11:42 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-07-11 09:38:57 +00:00
|
|
|
$ref: "#/components/schemas/NewFolder"
|
2020-07-02 21:11:42 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-folder-delete-by-id"
|
2020-07-11 09:38:57 +00:00
|
|
|
tags: [ Folder ]
|
|
|
|
summary: Delete a folder by its id.
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
Deletes a folder.
|
2020-07-02 21:11:42 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-07-11 09:38:57 +00:00
|
|
|
/sec/folder/{id}/member/{userId}:
|
2020-07-02 21:11:42 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-folder-add-member"
|
2020-07-11 09:38:57 +00:00
|
|
|
tags: [ Folder ]
|
|
|
|
summary: Add a member to this folder
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
Adds a member to this folder (identified by `id`).
|
2020-07-02 21:11:42 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
- $ref: "#/components/parameters/userId"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-folder-delete-member"
|
2020-07-11 09:38:57 +00:00
|
|
|
tags: [ Folder ]
|
|
|
|
summary: Removes a member from this folder.
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
Removes a member from this folder.
|
2020-07-02 21:11:42 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
- $ref: "#/components/parameters/userId"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/collective:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-collective-get-all"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Get information about your collective
|
|
|
|
description: |
|
|
|
|
Return some information about the current collective.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Collective"
|
|
|
|
/sec/collective/settings:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-collective-get-settings"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Get collective settings
|
|
|
|
description: |
|
|
|
|
Return the settings of a collective.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CollectiveSettings"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-collective-update-settings"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Collective ]
|
2020-05-23 11:53:36 +00:00
|
|
|
summary: Update settings for a collective
|
2019-07-22 22:53:30 +00:00
|
|
|
description: |
|
2020-05-23 11:53:36 +00:00
|
|
|
Updates settings for a collective.
|
2019-07-22 22:53:30 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CollectiveSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Collective"
|
|
|
|
/sec/collective/insights:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-collective-get-insights"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Get some insights regarding your items.
|
|
|
|
description: |
|
|
|
|
Returns some information about how many items there are, how
|
2020-07-11 09:38:57 +00:00
|
|
|
much folder they occupy etc.
|
2019-07-22 22:53:30 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemInsights"
|
2020-08-13 21:25:30 +00:00
|
|
|
/sec/collective/tagcloud:
|
2020-08-08 05:56:55 +00:00
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-collective-tag-cloud"
|
2020-08-08 05:56:55 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Summary of used tags.
|
|
|
|
description: |
|
|
|
|
Returns all tags and how often each has been applied.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/TagCloud"
|
|
|
|
|
2020-01-12 00:04:42 +00:00
|
|
|
/sec/collective/contacts:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-collective-contacts-get-all"
|
2020-01-12 00:04:42 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Return a list of contacts.
|
|
|
|
description: |
|
|
|
|
Return a list of all contacts available from the collectives
|
|
|
|
address book.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/q"
|
|
|
|
- $ref: "#/components/parameters/contactKind"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ContactList"
|
2020-09-01 21:56:57 +00:00
|
|
|
|
|
|
|
/sec/collective/classifier/startonce:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-collective-classifier-start-now"
|
2020-09-01 21:56:57 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Starts the learn-classifier task
|
|
|
|
description: |
|
|
|
|
If the collective has classification enabled, this will submit
|
|
|
|
the task for learning a classifier from existing data. This
|
|
|
|
task is usally run periodically as determined by the
|
|
|
|
collective settings.
|
|
|
|
|
|
|
|
The request is empty, settings are used from the collective.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-08-14 16:06:48 +00:00
|
|
|
/sec/collective/emptytrash/startonce:
|
|
|
|
post:
|
|
|
|
operationId: "sec-collective-emptytrash-start-now"
|
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Starts the empty trash task
|
|
|
|
description: |
|
|
|
|
Submits a task to remove all items from the database that have
|
|
|
|
been "soft-deleted". This task is also run periodically and
|
|
|
|
can be triggered here to be immediatly submitted.
|
|
|
|
|
|
|
|
The request is empty, settings are used from the collective.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2021-08-15 10:28:42 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/EmptyTrashSetting"
|
2021-08-14 16:06:48 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/user:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-user-get-all"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Get a list of collective users.
|
|
|
|
description: |
|
|
|
|
Return a list of all users of the collective.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/UserList"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-user-new"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Create a new collective user.
|
|
|
|
description: |
|
|
|
|
Create a new collective user. If a user with this name already
|
|
|
|
exists, an error is returned.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/User"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-user-edit"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Change an existing user.
|
|
|
|
description: |
|
|
|
|
Changes an existing user. The user is looked up by
|
|
|
|
its id and all properties are changed as given.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/User"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2021-09-06 22:18:02 +00:00
|
|
|
/sec/user/{username}:
|
2019-07-22 22:53:30 +00:00
|
|
|
delete:
|
2021-09-06 22:18:02 +00:00
|
|
|
operationId: "sec-user-delete-by-username"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Delete a user.
|
|
|
|
description: |
|
|
|
|
Deletes a user.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
2021-09-06 22:18:02 +00:00
|
|
|
- $ref: "#/components/parameters/username"
|
2019-07-22 22:53:30 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2021-09-06 22:18:02 +00:00
|
|
|
/sec/user/{username}/deleteData:
|
|
|
|
get:
|
|
|
|
operationId: "sec-user-delete-data"
|
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Shows some data that would be deleted if the user is deleted
|
|
|
|
description: |
|
|
|
|
Gets some data that would be deleted, when the user with the
|
|
|
|
given username is deleted. The `username` must be part of this
|
|
|
|
collective.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/username"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/DeleteUserData"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/user/changePassword:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-user-change-password"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Change the password.
|
|
|
|
description: |
|
|
|
|
Allows users to change their password.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/PasswordChange"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2021-01-04 15:32:54 +00:00
|
|
|
|
2021-08-30 14:15:13 +00:00
|
|
|
/sec/user/otp/state:
|
|
|
|
get:
|
|
|
|
operationId: "sec-user-otp-state"
|
|
|
|
tags: [ Collective ]
|
|
|
|
summary: Gets the otp state for the current user.
|
|
|
|
description: |
|
|
|
|
Returns whether the current account as OTP enabled or not.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OtpState"
|
|
|
|
|
|
|
|
/sec/user/otp/init:
|
|
|
|
post:
|
|
|
|
operationId: "sec-user-otp-init"
|
|
|
|
tags: [ Collective, Authentication ]
|
|
|
|
summary: Initialize two factor auth via OTP
|
|
|
|
description: |
|
|
|
|
Requests to enable two factor authentication for this user. A
|
|
|
|
secret key is generated and returned. The client is expected
|
|
|
|
to insert it into some OTP application. Currently, only time
|
|
|
|
based OTP is supported.
|
|
|
|
|
|
|
|
The request body is empty.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OtpResult"
|
|
|
|
|
|
|
|
/sec/user/otp/confirm:
|
|
|
|
post:
|
|
|
|
operationId: "sec-user-otp-confirm"
|
|
|
|
tags: [ Collective, Authentication ]
|
|
|
|
summary: Confirms two factor authentication
|
|
|
|
description: |
|
|
|
|
Confirms using two factor authentication by sending a one time
|
|
|
|
password. If the password is correct, this enables two factor
|
|
|
|
authentication for the current user.
|
|
|
|
|
|
|
|
If there exists no unapproved otp request or the password is
|
|
|
|
not correct, an error is returned. If 2fa is already enabled
|
|
|
|
for this account, success is returned.
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OtpConfirm"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/user/otp/disable:
|
|
|
|
post:
|
|
|
|
operationId: "sec-user-otp-disable"
|
|
|
|
tags: [ Collective, Authentication ]
|
|
|
|
summary: Disables two factor authentication.
|
|
|
|
description: |
|
|
|
|
Disables two factor authentication for the current user. If
|
2021-09-22 21:06:59 +00:00
|
|
|
the user has no two factor authentication enabled, an error is
|
|
|
|
returned.
|
|
|
|
|
|
|
|
It requires to specify a valid otp.
|
2021-08-30 14:15:13 +00:00
|
|
|
|
|
|
|
After this completes successfully, two factor auth can be
|
|
|
|
enabled again by initializing it anew.
|
2021-09-22 21:06:59 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OtpConfirm"
|
2021-08-30 14:15:13 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-05-24 22:06:13 +00:00
|
|
|
/sec/clientSettings/{clientId}:
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/clientId"
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-clientsettings-get"
|
2021-05-24 22:06:13 +00:00
|
|
|
tags: [ Client Settings ]
|
|
|
|
summary: Return the current user settings
|
|
|
|
description: |
|
|
|
|
Returns the settings for the current user. The `clientId` is
|
|
|
|
an identifier to a client application. It returns a JSON
|
|
|
|
structure. The server doesn't care about the actual data,
|
|
|
|
since it is meant to be interpreted by clients.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema: {}
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-clientsettings-update"
|
2021-05-24 22:06:13 +00:00
|
|
|
tags: [ Client Settings ]
|
|
|
|
summary: Update current user settings
|
|
|
|
description: |
|
|
|
|
Updates (replaces or creates) the current user's settings with
|
|
|
|
the given data. The `clientId` is an identifier to a client
|
|
|
|
application. The request body is expected to be JSON, the
|
|
|
|
structure is not important to the server.
|
|
|
|
|
|
|
|
The data is stored for the current user and given `clientId`.
|
|
|
|
|
|
|
|
The data is only saved without being checked in any way
|
|
|
|
(besides being valid JSON). It is returned "as is" to the
|
|
|
|
client in the corresponding GET endpoint.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema: {}
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-clientsettings-delete"
|
2021-05-24 22:06:13 +00:00
|
|
|
tags: [ Client Settings ]
|
|
|
|
summary: Clears the current user settings
|
|
|
|
description: |
|
|
|
|
Removes all stored user settings for the client identified by
|
|
|
|
`clientId`.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-01-04 15:32:54 +00:00
|
|
|
/admin/user/resetPassword:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "admin-user-reset-password"
|
2021-01-04 15:32:54 +00:00
|
|
|
tags: [ Collective, Admin ]
|
|
|
|
summary: Reset a user password.
|
|
|
|
description: |
|
|
|
|
Resets a user password to some random string which is returned
|
|
|
|
as the result. This is an admin route, so you need to specify
|
|
|
|
the secret from the config file via a http header
|
|
|
|
`Docspell-Admin-Secret`.
|
|
|
|
security:
|
|
|
|
- adminHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ResetPassword"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ResetPasswordResult"
|
2021-09-02 20:06:13 +00:00
|
|
|
/admin/user/otp/resetOTP:
|
2021-08-30 14:15:13 +00:00
|
|
|
post:
|
|
|
|
operationId: "admin-user-reset-otp"
|
|
|
|
tags: [ Collective, Admin ]
|
|
|
|
summary: Disables OTP two factor auth for the given user.
|
|
|
|
description: |
|
|
|
|
Removes the OTP setup for the given user account. The account
|
|
|
|
can login afterwards with a correct password. A second factor
|
|
|
|
is not required. Two factor auth can be setup again for this
|
|
|
|
account.
|
|
|
|
security:
|
|
|
|
- adminHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ResetPassword"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2021-01-04 15:32:54 +00:00
|
|
|
|
2021-07-04 19:37:34 +00:00
|
|
|
/admin/attachments/generatePreviews:
|
|
|
|
post:
|
|
|
|
operationId: "admin-attachments-generate-previews"
|
|
|
|
tags: [Attachment, Admin]
|
|
|
|
summary: (Re)generate all preview images
|
|
|
|
description: |
|
|
|
|
Submits a task that re-generates preview images of all
|
|
|
|
attachments. Each existing preview image will be replaced.
|
|
|
|
|
|
|
|
This can be used after changing the `preview` settings.
|
|
|
|
|
|
|
|
If only preview images of selected attachments should be
|
|
|
|
regenerated, see the `/sec/attachment/{id}/preview` endpoint.
|
|
|
|
|
|
|
|
This is an admin route, you need to specify the secret from
|
|
|
|
the config file via a http header `Docspell-Admin-Secret`.
|
|
|
|
security:
|
|
|
|
- adminHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-07-24 23:25:24 +00:00
|
|
|
/admin/attachments/convertallpdfs:
|
|
|
|
post:
|
|
|
|
operationId: "admin-attachments-convertallpdf"
|
|
|
|
tags: [Attachment, Admin]
|
|
|
|
summary: Convert all PDF files not yet converted
|
|
|
|
description: |
|
|
|
|
Docspell converts PDF files into PDF/A files by default, if
|
|
|
|
the OcrMyPDF tool is configured.
|
|
|
|
|
|
|
|
This endpoint can be used to submit a task that runs this on
|
|
|
|
all files that have not been converted yet in this way.
|
|
|
|
|
|
|
|
This conversion tool has been added in version 0.9.0 and so
|
|
|
|
older files can be "migrated" this way, or maybe after
|
|
|
|
enabling the tool (it is optional).
|
|
|
|
|
|
|
|
The task finds all files collective and submits a task for
|
|
|
|
each file to convert. These tasks are submitted with a low
|
|
|
|
priority so that normal processing can still proceed.
|
|
|
|
|
|
|
|
The body of the request should be empty.
|
|
|
|
security:
|
|
|
|
- adminHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/source:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-source-get-all"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Source ]
|
|
|
|
summary: Get a list of sources
|
|
|
|
description: |
|
|
|
|
Return a list of all configured sources.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/SourceList"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-source-new"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Source ]
|
|
|
|
summary: Create a new source.
|
|
|
|
description: |
|
|
|
|
Create a new source. If a source with this name already
|
|
|
|
exists, an error is returned.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-11-12 20:40:53 +00:00
|
|
|
$ref: "#/components/schemas/SourceTagIn"
|
2019-07-22 22:53:30 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-source-edit"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Source ]
|
|
|
|
summary: Change an existing source.
|
|
|
|
description: |
|
|
|
|
Changes an existing source. The source is looked up by
|
|
|
|
its id and all properties are changed as given.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-11-12 20:40:53 +00:00
|
|
|
$ref: "#/components/schemas/SourceTagIn"
|
2019-07-22 22:53:30 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/source/{id}:
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-source-delete-by-id"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Source ]
|
|
|
|
summary: Delete a source.
|
|
|
|
description: |
|
|
|
|
Deletes a source. This also removes this sources from
|
|
|
|
all items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
2020-08-13 18:52:43 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-10-02 13:16:02 +00:00
|
|
|
/sec/share:
|
|
|
|
get:
|
|
|
|
operationId: "sec-share-get-all"
|
|
|
|
tags: [ Share ]
|
|
|
|
summary: Get a list of shares
|
|
|
|
description: |
|
|
|
|
Return a list of all shares for this collective.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ShareList"
|
|
|
|
post:
|
|
|
|
operationId: "sec-share-new"
|
|
|
|
tags: [ Share ]
|
|
|
|
summary: Create a new share.
|
|
|
|
description: |
|
|
|
|
Create a new share.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ShareData"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/IdResult"
|
|
|
|
/sec/share/{shareId}:
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/shareId"
|
|
|
|
get:
|
|
|
|
operationId: "sec-share-get"
|
|
|
|
tags: [Share]
|
|
|
|
summary: Get details to a single share.
|
|
|
|
description: |
|
|
|
|
Given the id of a share, returns some details about it.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ShareDetail"
|
|
|
|
put:
|
|
|
|
operationId: "sec-share-update"
|
|
|
|
tags: [ Share ]
|
|
|
|
summary: Update an existing share.
|
|
|
|
description: |
|
|
|
|
Updates an existing share.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ShareData"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
delete:
|
|
|
|
operationId: "sec-share-delete-by-id"
|
|
|
|
tags: [ Share ]
|
|
|
|
summary: Delete a share.
|
|
|
|
description: |
|
|
|
|
Deletes a share
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-03-01 11:37:25 +00:00
|
|
|
/sec/item/search:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-search-by-get"
|
2021-03-01 11:37:25 +00:00
|
|
|
tags: [ Item Search ]
|
|
|
|
summary: Search for items.
|
|
|
|
description: |
|
|
|
|
Search for items given a search query. The results are grouped
|
|
|
|
by month and are sorted by item date (newest first). Tags and
|
|
|
|
attachments are *not* resolved. The results will always
|
|
|
|
contain an empty list for item tags and attachments. Set
|
|
|
|
`withDetails` to `true` for retrieving all tags and a list of
|
|
|
|
attachments of an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/q"
|
|
|
|
- $ref: "#/components/parameters/limit"
|
|
|
|
- $ref: "#/components/parameters/offset"
|
|
|
|
- $ref: "#/components/parameters/withDetails"
|
2021-08-14 13:08:29 +00:00
|
|
|
- $ref: "#/components/parameters/searchMode"
|
2021-03-01 11:37:25 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemLightList"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-search-by-post"
|
2021-03-01 11:37:25 +00:00
|
|
|
tags: [ Item Search ]
|
|
|
|
summary: Search for items.
|
|
|
|
description: |
|
|
|
|
Search for items given a search query. The results are grouped
|
|
|
|
by month and are sorted by item date (newest first). Tags and
|
|
|
|
attachments are *not* resolved. The results will always
|
|
|
|
contain an empty list for item tags and attachments. Use
|
|
|
|
`withDetails` to also retrieve all tags and a list of
|
|
|
|
attachments of an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemQuery"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemLightList"
|
|
|
|
|
2020-06-23 21:02:58 +00:00
|
|
|
/sec/item/searchIndex:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-search-index"
|
2021-03-01 11:37:25 +00:00
|
|
|
tags: [ Item Search ]
|
2020-06-23 21:02:58 +00:00
|
|
|
summary: Search for items using full-text search only.
|
|
|
|
description: |
|
|
|
|
Search for items by only using the full-text search index.
|
|
|
|
|
|
|
|
Unlike the other search routes, this one only asks the
|
|
|
|
full-text search index and returns only one group that
|
|
|
|
contains the results in the same order as given from the
|
|
|
|
index. Most full-text search engines use an ordering that
|
|
|
|
reflect the relevance wrt the search term.
|
|
|
|
|
|
|
|
The other search routes always order the results by some
|
|
|
|
property (the item date) and thus the relevance ordering is
|
|
|
|
destroyed when using the full-text search.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-03-01 11:37:25 +00:00
|
|
|
$ref: "#/components/schemas/ItemQuery"
|
2020-06-23 21:02:58 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemLightList"
|
|
|
|
|
2021-03-01 11:37:25 +00:00
|
|
|
/sec/item/searchStats:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-search-stats-get"
|
2021-03-01 11:37:25 +00:00
|
|
|
tags: [ Item Search ]
|
|
|
|
summary: Get basic statistics about search results.
|
|
|
|
description: |
|
|
|
|
Instead of returning the results of a query, uses it to return
|
|
|
|
a summary.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemQuery"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/SearchStats"
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-search-stats-post"
|
2021-03-01 11:37:25 +00:00
|
|
|
tags: [ Item Search ]
|
|
|
|
summary: Get basic statistics about search results.
|
|
|
|
description: |
|
|
|
|
Instead of returning the results of a query, uses it to return
|
|
|
|
a summary.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/q"
|
2021-08-14 18:10:57 +00:00
|
|
|
- $ref: "#/components/parameters/searchMode"
|
2021-03-01 11:37:25 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/SearchStats"
|
2020-12-15 22:33:03 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/item/{id}:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-details"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Get details about an item.
|
|
|
|
description: |
|
|
|
|
Get detailed information about an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemDetail"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-delete-by-id"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Delete an item.
|
|
|
|
description: |
|
2021-08-14 14:45:51 +00:00
|
|
|
Delete an item and all its data. This is a "soft delete", the
|
|
|
|
item is still in the database and can be undeleted. A periodic
|
|
|
|
job will eventually remove this item from the database.
|
2019-07-22 22:53:30 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2021-08-14 14:45:51 +00:00
|
|
|
/sec/item/{id}/restore:
|
|
|
|
post:
|
|
|
|
operationId: "sec-item-restore-by-id"
|
|
|
|
tags: [ Item ]
|
|
|
|
summary: Restore a deleted item.
|
|
|
|
description: |
|
|
|
|
A deleted item can be restored as long it is still in the
|
|
|
|
database. This action sets the item state to `created`.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/item/{id}/tags:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-get-tags"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set new set of tags.
|
|
|
|
description: |
|
2020-10-25 14:08:44 +00:00
|
|
|
Update the tags associated to an item. This will remove all
|
|
|
|
existing ones and sets the given tags, such that after this
|
|
|
|
returns, the item has exactly the tags as given.
|
2021-07-25 19:24:08 +00:00
|
|
|
|
|
|
|
Tags may be specified as names or ids.
|
2019-07-22 22:53:30 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2021-07-25 19:24:08 +00:00
|
|
|
$ref: "#/components/schemas/StringList"
|
2019-07-22 22:53:30 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-06-09 22:25:24 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-create-and-add-tag"
|
2020-06-09 22:25:24 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Add a new tag to an item.
|
|
|
|
description: |
|
|
|
|
Creates a new tag and associates it to the given item.
|
|
|
|
|
|
|
|
The tag's `id` and `created` are generated and not used from
|
|
|
|
the given data, so it can be left empty. Only `name` and
|
|
|
|
`category` are used, where `category` is optional.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Tag"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-08-08 13:03:28 +00:00
|
|
|
|
|
|
|
/sec/item/{id}/taglink:
|
2021-07-25 20:00:54 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-link-tags"
|
2020-08-08 13:03:28 +00:00
|
|
|
tags: [Item]
|
|
|
|
summary: Link existing tags to an item.
|
|
|
|
description: |
|
|
|
|
Sets all given tags to the item. The tags must exist,
|
|
|
|
otherwise they are ignored. The tags may be specified as names
|
|
|
|
or ids.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/StringList"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/item/{id}/tagtoggle:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-toggle-tags"
|
2020-08-08 13:03:28 +00:00
|
|
|
tags: [Item]
|
|
|
|
summary: Toggles existing tags to an item.
|
|
|
|
description: |
|
|
|
|
Toggles all given tags of the item. The tags must exist,
|
|
|
|
otherwise they are ignored. The tags may be specified as names
|
|
|
|
or ids. Tags are either removed or linked from/to the item,
|
|
|
|
depending on whether the item currently is tagged with the
|
|
|
|
corresponding tag.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2021-07-25 20:01:09 +00:00
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/StringList"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/item/{id}/tagsremove:
|
|
|
|
post:
|
|
|
|
operationId: "sec-item-remove-tags"
|
|
|
|
tags: [ Item ]
|
|
|
|
summary: Remove tags from an item
|
|
|
|
description: |
|
|
|
|
Remove the given tags from the item. The tags can be specified
|
|
|
|
via ids or names.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
2020-08-08 13:03:28 +00:00
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/StringList"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/item/{id}/direction:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-direction"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set the direction of an item.
|
|
|
|
description: |
|
|
|
|
Update the direction of an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/DirectionValue"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-07-11 10:00:19 +00:00
|
|
|
/sec/item/{id}/folder:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-folder"
|
2020-07-11 10:00:19 +00:00
|
|
|
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"
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/item/{id}/corrOrg:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-org"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set the correspondent organization of an item.
|
|
|
|
description: |
|
|
|
|
Update the correspondent organization of an item.
|
|
|
|
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"
|
2020-06-11 20:04:08 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-create-and-set-org"
|
2020-06-11 20:04:08 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set a new correspondent organization of an item.
|
|
|
|
description: |
|
|
|
|
Create a new organization and update the correspondent
|
|
|
|
organization of an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Organization"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/item/{id}/corrPerson:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-corr-person"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set the correspondent person of an item.
|
|
|
|
description: |
|
|
|
|
Update the correspondent person of an item.
|
|
|
|
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"
|
2020-06-11 20:28:31 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-create-and-set-corr-person"
|
2020-06-11 20:28:31 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Create and set the correspondent person of an item.
|
|
|
|
description: |
|
|
|
|
Creates a new person and updates the correspondent person of
|
|
|
|
an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Person"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/item/{id}/concPerson:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-conc-person"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set the concerning person of an item.
|
|
|
|
description: |
|
|
|
|
Update the concerning person of an item.
|
|
|
|
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"
|
2020-06-11 20:28:31 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-create-and-set-conc-person"
|
2020-06-11 20:28:31 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Create and set the concerning person of an item.
|
|
|
|
description: |
|
|
|
|
Creates a new person and updates the concerning person of an
|
|
|
|
item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Person"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/item/{id}/concEquipment:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-equip"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set the concering equipment of an item.
|
|
|
|
description: |
|
|
|
|
Update the concering equipment of an item.
|
|
|
|
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"
|
2020-06-11 20:28:31 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-create-and-set-equip"
|
2020-06-11 20:28:31 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Create and set a new the concering equipment of an item.
|
|
|
|
description: |
|
|
|
|
Creates a new equipment and sets it as the concering equipment
|
|
|
|
of an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Equipment"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/item/{id}/notes:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-notes"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set notes of an item.
|
|
|
|
description: |
|
|
|
|
Update the notes of an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OptionalText"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/item/{id}/name:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-name"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set the name of an item.
|
|
|
|
description: |
|
|
|
|
Update the name of an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OptionalText"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/item/{id}/confirm:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-confirm"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Confirms the current meta data of an item.
|
|
|
|
description: |
|
|
|
|
An item is initially in state "created". The user can confirm
|
|
|
|
the associated data to put it in state "confirmed".
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/item/{id}/unconfirm:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-unconfirm"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Puts an item back to created state.
|
|
|
|
description: |
|
|
|
|
If an item is confirmed it can be set back to created to
|
|
|
|
appear as new.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/item/{id}/date:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-date"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Sets the item date.
|
|
|
|
description: |
|
|
|
|
Sets the date of an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OptionalDate"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/item/{id}/duedate:
|
2020-06-09 21:20:58 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-duedate"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Sets the items due date.
|
|
|
|
description: |
|
|
|
|
Sets the due date of an item.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OptionalDate"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/item/{id}/proposals:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-get-proposals"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Get a list of proposals for this item.
|
|
|
|
description: |
|
|
|
|
During text processing, a list of possible meta data has been
|
|
|
|
extracted from each attachment that may be a match to this
|
|
|
|
item. This is returned here, without duplicates.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemProposals"
|
2020-11-08 13:22:33 +00:00
|
|
|
/sec/item/{id}/preview:
|
|
|
|
head:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-check-preview"
|
2020-11-08 13:22:33 +00:00
|
|
|
tags: [ Attachment ]
|
|
|
|
summary: Get a preview image of an attachment file.
|
|
|
|
description: |
|
|
|
|
Checks if an image file showing a preview of the item is
|
|
|
|
available. If not available, a 404 is returned. The preview is
|
2021-06-12 17:12:52 +00:00
|
|
|
an image of the first page of the first attachment.
|
2020-11-08 13:22:33 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
404:
|
|
|
|
description: NotFound
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-get-preview"
|
2020-11-08 13:22:33 +00:00
|
|
|
tags: [ Attachment ]
|
|
|
|
summary: Get a preview image of an attachment file.
|
|
|
|
description: |
|
|
|
|
Gets a image file showing a preview of the item. Usually it is
|
|
|
|
a small image of the first page of the first attachment. If
|
|
|
|
not available, a 404 is returned. However, if the query
|
|
|
|
parameter `withFallback` is `true`, a fallback preview image
|
|
|
|
is returned. You can also use the `HEAD` method to check for
|
|
|
|
existence.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
- $ref: "#/components/parameters/withFallback"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/octet-stream:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: binary
|
2020-10-25 14:08:44 +00:00
|
|
|
|
2020-11-16 21:06:48 +00:00
|
|
|
/sec/item/{id}/customfield:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-set-customfield-value"
|
2020-11-16 21:06:48 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Set the value of a custom field.
|
|
|
|
description: |
|
|
|
|
Sets the value for a custom field to this item. If a value
|
2020-11-23 09:59:13 +00:00
|
|
|
already exists, it is overwritten. A value must comply to the
|
|
|
|
type of the associated field. It must not be the empty string.
|
2020-11-16 21:06:48 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CustomFieldValue"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/item/{itemId}/customfield/{id}:
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-delete-customfield-value"
|
2020-11-16 21:06:48 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Removes the value for a custom field
|
|
|
|
description: |
|
|
|
|
Removes the value for the given custom field. The `id` may be
|
|
|
|
the id of a custom field or its name.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
- $ref: "#/components/parameters/itemId"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
|
2020-08-12 20:26:44 +00:00
|
|
|
/sec/item/{itemId}/reprocess:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-start-reprocess"
|
2020-08-12 20:26:44 +00:00
|
|
|
tags: [ Item ]
|
|
|
|
summary: Start reprocessing the files of the item.
|
|
|
|
description: |
|
|
|
|
This submits a job that will re-process the files (either all
|
2021-03-11 20:43:06 +00:00
|
|
|
or the ones specified) of the item and replace their metadata.
|
|
|
|
|
|
|
|
If the item is not in "confirmed" state, its associated metada
|
|
|
|
is also updated. Otherwise only the file metadata is updated
|
2021-03-11 22:13:34 +00:00
|
|
|
(text analysis).
|
2020-08-12 20:26:44 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
2020-10-18 21:55:56 +00:00
|
|
|
- $ref: "#/components/parameters/itemId"
|
2020-08-12 20:26:44 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-08-13 18:52:43 +00:00
|
|
|
$ref: "#/components/schemas/IdList"
|
2020-08-12 20:26:44 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
|
2020-05-24 15:29:28 +00:00
|
|
|
/sec/item/{itemId}/attachment/movebefore:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-item-attach-move-before"
|
2020-05-24 15:29:28 +00:00
|
|
|
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"
|
2019-07-22 22:53:30 +00:00
|
|
|
|
2020-10-25 14:08:44 +00:00
|
|
|
|
2021-08-16 09:55:47 +00:00
|
|
|
/sec/items/merge:
|
|
|
|
post:
|
|
|
|
operationId: "sec-items-merge"
|
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Merge multiple items into one.
|
|
|
|
description: |
|
|
|
|
A list of items is merged into one item by copying all
|
2021-08-16 12:40:42 +00:00
|
|
|
metadata into the first item in the list.
|
|
|
|
|
|
|
|
Metadata is copied into the target item, if there is no value
|
|
|
|
present. So the order of items in the list matters - the first
|
|
|
|
item with a correspondent or folder will win.
|
|
|
|
|
|
|
|
For metadata that allow multiple values, like tags or custom
|
|
|
|
fields the values are combined. Notes are concatenated from
|
|
|
|
all items and custom fields with the same name are added
|
|
|
|
together for money/numeric fields, concatenated for text
|
|
|
|
fields or the first value is used for other field types.
|
|
|
|
|
|
|
|
After a successful merge, the remaining items are deleted from
|
|
|
|
the database (they cannot be restored).
|
2021-08-16 09:55:47 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/IdList"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-10-25 14:08:44 +00:00
|
|
|
/sec/items/deleteAll:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-delete-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Delete multiple items.
|
|
|
|
description: |
|
|
|
|
Given a list of item ids, deletes all of them.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/IdList"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-08-14 14:45:51 +00:00
|
|
|
/sec/items/restoreAll:
|
|
|
|
post:
|
|
|
|
operationId: "sec-items-restore-all"
|
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Restore multiple items.
|
|
|
|
description: |
|
|
|
|
Given a list of item ids, restores all of them.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/IdList"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-10-25 14:08:44 +00:00
|
|
|
/sec/items/tags:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-add-all-tags"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Add tags to multiple items
|
|
|
|
description: |
|
2020-10-26 10:54:04 +00:00
|
|
|
Add the given tags to all given items. The tags that are
|
|
|
|
currently attached to the items are not changed. If there are
|
|
|
|
new tags in the given list, then they are added. Otherwise,
|
|
|
|
the item is left unchanged.
|
2020-10-25 14:08:44 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndRefs"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2021-06-12 17:12:52 +00:00
|
|
|
put:
|
|
|
|
operationId: "sec-items-replace-all-tags"
|
2020-10-31 11:03:05 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
2021-06-12 17:12:52 +00:00
|
|
|
summary: Sets tags to multiple items
|
2020-10-31 11:03:05 +00:00
|
|
|
description: |
|
2021-06-12 17:12:52 +00:00
|
|
|
Sets the given tags to all given items. If the tag list is
|
|
|
|
empty, then all tags are removed from the items.
|
2020-10-31 11:03:05 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndRefs"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-06-12 17:12:52 +00:00
|
|
|
/sec/items/tagsremove:
|
|
|
|
post:
|
|
|
|
operationId: "sec-items-remove-all-tags"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
2021-06-12 17:12:52 +00:00
|
|
|
summary: Remove tags from multiple items
|
2020-10-25 14:08:44 +00:00
|
|
|
description: |
|
2021-06-12 17:12:52 +00:00
|
|
|
Remove the given tags from all given items.
|
2020-10-25 14:08:44 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndRefs"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-06-12 17:12:52 +00:00
|
|
|
|
2020-10-25 14:08:44 +00:00
|
|
|
/sec/items/name:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-name-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Change the name of multiple items
|
|
|
|
description: |
|
|
|
|
Sets the name of multiple items at once. The name must not be
|
|
|
|
empty.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndName"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/folder:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-folder-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Sets a folder to multiple items.
|
|
|
|
description: |
|
|
|
|
Given a folder id, sets it on all given items. If the folder
|
|
|
|
reference is not present, the folder is removed from all
|
|
|
|
items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndRef"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/direction:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-direction-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Set the direction of multiple items
|
|
|
|
description: |
|
|
|
|
Given multiple item ids and a direction value, sets it to all
|
|
|
|
items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndDirection"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/date:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-date-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Set the date of multiple items
|
|
|
|
description: |
|
|
|
|
Given multiple item ids and a date, sets it to all items as
|
|
|
|
the item date. If no date is present, remove the date from the
|
|
|
|
items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndDate"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/duedate:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-duedate-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Set the direction of multiple items
|
|
|
|
description: |
|
|
|
|
Given multiple item ids and a date value, sets it to all items
|
|
|
|
as the due date. If the date is missing, remove the due-date
|
|
|
|
from the items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndDate"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/corrOrg:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-corr-org-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Sets an organization to multiple items.
|
|
|
|
description: |
|
|
|
|
Given an organization id, sets it on all given items. If the
|
|
|
|
organization is missing, the reference is removed from all
|
|
|
|
items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndRef"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/corrPerson:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-corr-person-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Sets an correspondent person to multiple items.
|
|
|
|
description: |
|
|
|
|
Given an person id, sets it on all given items as
|
|
|
|
correspondent person. If the person is missing, the reference
|
|
|
|
is removed from all items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndRef"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/concPerson:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-conc-person-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Sets an concerning person to multiple items.
|
|
|
|
description: |
|
|
|
|
Given an person id, sets it on all given items as concerning
|
|
|
|
person. If the person is missing, it is removed from all
|
|
|
|
items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndRef"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/concEquipment:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-equip-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Sets an equipment to multiple items.
|
|
|
|
description: |
|
|
|
|
Given an equipment id, sets it on all given items. If no
|
|
|
|
equipment is given, the reference is removed from all given
|
|
|
|
items.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndRef"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/confirm:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-confirm-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Confirm multiple items.
|
|
|
|
description: |
|
|
|
|
Given a list of item ids, confirm all of them.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/IdList"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/unconfirm:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-unconfirm-all"
|
2020-10-25 14:08:44 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Un-confirm multiple items.
|
|
|
|
description: |
|
|
|
|
Given a list of item ids, un-confirm all of them.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/IdList"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-10-26 13:03:56 +00:00
|
|
|
/sec/items/reprocess:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-reprocess-all"
|
2020-10-26 13:03:56 +00:00
|
|
|
tags:
|
|
|
|
- Item (Multi Edit)
|
|
|
|
summary: Submit multiple items to re-processing
|
|
|
|
description: |
|
|
|
|
Given a list of item-ids, submits all these items for
|
|
|
|
reprocessing. All attachments of these items will be
|
2021-03-11 22:13:34 +00:00
|
|
|
reprocessed. Item metadata may be changed if an item is not
|
|
|
|
confirmed. Confirmed items are not changed.
|
2020-10-26 13:03:56 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/IdList"
|
|
|
|
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-11-16 22:27:26 +00:00
|
|
|
/sec/items/customfield:
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-set-customfield-all"
|
2020-11-16 22:27:26 +00:00
|
|
|
tags: [ Item (Multi Edit) ]
|
|
|
|
summary: Set the value of a custom field for multiple items
|
|
|
|
description: |
|
|
|
|
Sets the value for a custom field to multiple given items. If
|
2020-11-23 09:59:13 +00:00
|
|
|
a value already exists, it is overwritten. The value must
|
|
|
|
comply to the associated field type. It must not be the empty
|
|
|
|
string.
|
2020-11-16 22:27:26 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndFieldValue"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
|
|
|
/sec/items/customfieldremove:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-items-remove-customfield-all"
|
2020-11-16 22:27:26 +00:00
|
|
|
tags: [ Item (Multi Edit) ]
|
|
|
|
summary: Removes the value for a custom field on multiple items
|
|
|
|
description: |
|
|
|
|
Removes the value for the given custom field from multiple
|
|
|
|
items. The field may be specified by its id or name.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ItemsAndName"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-10-25 14:08:44 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/attachment/{id}:
|
2020-04-26 21:04:03 +00:00
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-delete-by-id"
|
2020-04-26 21:04:03 +00:00
|
|
|
tags: [ Attachment ]
|
|
|
|
summary: Delete an attachment.
|
|
|
|
description: |
|
|
|
|
Deletes a single attachment with all its related data like
|
|
|
|
file, the original file, extracted text, results from analysis
|
|
|
|
etc.
|
|
|
|
|
|
|
|
If the attachment is part of an archive, the archive is only
|
|
|
|
deleted, if it is the last entry left. Archives are otherwise
|
|
|
|
not deleted, if there are remaining attachments available.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-02-08 16:51:47 +00:00
|
|
|
head:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-check"
|
2020-02-08 16:51:47 +00:00
|
|
|
tags: [ Attachment ]
|
2021-07-17 16:01:18 +00:00
|
|
|
summary: Get headers to an attachment file.
|
2020-02-08 16:51:47 +00:00
|
|
|
description: |
|
2020-02-20 21:12:27 +00:00
|
|
|
Get information about the binary file belonging to the
|
|
|
|
attachment with the given id.
|
2020-02-08 16:51:47 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
headers:
|
|
|
|
Content-Type:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
Content-Length:
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
ETag:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
Content-Disposition:
|
|
|
|
schema:
|
|
|
|
type: string
|
2019-07-22 22:53:30 +00:00
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-get"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Attachment ]
|
|
|
|
summary: Get an attachment file.
|
|
|
|
description: |
|
2020-02-20 21:12:27 +00:00
|
|
|
Get the binary file belonging to the attachment with the given
|
2021-07-17 16:01:18 +00:00
|
|
|
id. The binary is a pdf file. If conversion failed, then the
|
|
|
|
original file is returned.
|
2020-02-20 21:12:27 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/octet-stream:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
/sec/attachment/{id}/original:
|
|
|
|
head:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-check-original"
|
2020-02-20 21:12:27 +00:00
|
|
|
tags: [ Attachment ]
|
2021-07-14 20:32:17 +00:00
|
|
|
summary: Get headers of the original file of an attachment.
|
2020-02-20 21:12:27 +00:00
|
|
|
description: |
|
|
|
|
Get information about the original binary file of the
|
|
|
|
attachment with the given id.
|
|
|
|
|
|
|
|
If the attachment is a converted PDF file, this route gets the
|
|
|
|
original file as it was uploaded.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
headers:
|
|
|
|
Content-Type:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
Content-Length:
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
ETag:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
Content-Disposition:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-get-original"
|
2020-02-20 21:12:27 +00:00
|
|
|
tags: [ Attachment ]
|
2021-07-14 20:32:17 +00:00
|
|
|
summary: Get the original file of an attachment.
|
2020-02-20 21:12:27 +00:00
|
|
|
description: |
|
|
|
|
Get the original binary file of the attachment with the given
|
|
|
|
id.
|
|
|
|
|
|
|
|
If the attachment is a converted PDF file, this route gets the
|
|
|
|
original file as it was uploaded.
|
2019-07-22 22:53:30 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/octet-stream:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: binary
|
2020-03-22 20:21:49 +00:00
|
|
|
/sec/attachment/{id}/archive:
|
|
|
|
head:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-check-archive"
|
2020-03-22 20:21:49 +00:00
|
|
|
tags: [ Attachment ]
|
2021-07-14 20:32:17 +00:00
|
|
|
summary: Get headers of the archive file to an attachment.
|
2020-03-22 20:21:49 +00:00
|
|
|
description: |
|
|
|
|
Get information about the archive that contains the attachment
|
|
|
|
with the given id.
|
|
|
|
|
|
|
|
If the attachment was not uploaded as part of an archive, 404
|
|
|
|
is returned.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
headers:
|
|
|
|
Content-Type:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
Content-Length:
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
ETag:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
Content-Disposition:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-get-archive"
|
2020-03-22 20:21:49 +00:00
|
|
|
tags: [ Attachment ]
|
2021-07-14 20:32:17 +00:00
|
|
|
summary: Get the archive file of an attachment.
|
2020-03-22 20:21:49 +00:00
|
|
|
description: |
|
|
|
|
Get the archive file that was originally uploaded that
|
|
|
|
contains the attachment with the given id.
|
|
|
|
|
|
|
|
If the attachment was not uploaded as part of an archive, a
|
|
|
|
404 is returned.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/octet-stream:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: binary
|
2020-11-08 09:03:47 +00:00
|
|
|
/sec/attachment/{id}/preview:
|
|
|
|
head:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-check-preview"
|
2020-11-08 09:03:47 +00:00
|
|
|
tags: [ Attachment ]
|
2021-07-14 20:32:17 +00:00
|
|
|
summary: Get the headers to a preview image of an attachment file.
|
2020-11-08 09:03:47 +00:00
|
|
|
description: |
|
|
|
|
Checks if an image file showing a preview of the attachment is
|
|
|
|
available. If not available, a 404 is returned.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
404:
|
|
|
|
description: NotFound
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-get-preview"
|
2020-11-08 09:03:47 +00:00
|
|
|
tags: [ Attachment ]
|
|
|
|
summary: Get a preview image of an attachment file.
|
|
|
|
description: |
|
|
|
|
Gets a image file showing a preview of the attachment. Usually
|
|
|
|
it is a small image of the first page of the document.If not
|
|
|
|
available, a 404 is returned. However, if the query parameter
|
|
|
|
`withFallback` is `true`, a fallback preview image is
|
|
|
|
returned. You can also use the `HEAD` method to check for
|
|
|
|
existence.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
- $ref: "#/components/parameters/withFallback"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/octet-stream:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: binary
|
2020-11-09 00:18:48 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-regenerate-preview"
|
2020-11-09 00:18:48 +00:00
|
|
|
tags: [ Attachment ]
|
|
|
|
summary: (Re)generate a preview image.
|
|
|
|
description: |
|
|
|
|
Submits a task that generates a preview image for this
|
|
|
|
attachment. The existing preview will be replaced.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/attachment/{id}/meta:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-get-meta"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Attachment ]
|
|
|
|
summary: Get the attachment's meta data.
|
|
|
|
description: |
|
|
|
|
Get meta data for this attachment. The meta data has been
|
|
|
|
extracted from the contents.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/AttachmentMeta"
|
2020-02-08 16:51:47 +00:00
|
|
|
/sec/attachment/{id}/view:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-show-viewerjs"
|
2020-02-08 16:51:47 +00:00
|
|
|
tags: [ Attachment ]
|
2021-07-17 16:01:18 +00:00
|
|
|
summary: A javascript rendered view of the pdf attachment
|
2020-02-08 16:51:47 +00:00
|
|
|
description: |
|
2021-07-17 16:01:18 +00:00
|
|
|
This provides a preview of the attachment rendered in a
|
|
|
|
browser.
|
|
|
|
|
|
|
|
It currently uses a third-party javascript library (viewerjs)
|
|
|
|
to display the preview. This works by redirecting to the
|
|
|
|
viewerjs url with the attachment url as parameter. Note that
|
|
|
|
the resulting url that is redirected to is not stable. It may
|
|
|
|
change from version to version. This route, however, is meant
|
|
|
|
to provide a stable url for the preview.
|
2020-02-08 16:51:47 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
303:
|
|
|
|
description: See Other
|
|
|
|
200:
|
|
|
|
description: Ok
|
2020-06-14 10:34:07 +00:00
|
|
|
/sec/attachment/{id}/name:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attach-set-name"
|
2020-06-14 10:34:07 +00:00
|
|
|
tags: [ Attachment ]
|
|
|
|
summary: Changes the name of an attachment
|
|
|
|
description: |
|
|
|
|
Change the name of the attachment with the given id. The
|
|
|
|
attachment must be part of an item that belongs to the
|
|
|
|
collective of the current user.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OptionalText"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2021-04-15 15:59:39 +00:00
|
|
|
/sec/attachments/delete:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-attachs-delete-all"
|
2021-04-15 15:59:39 +00:00
|
|
|
tags:
|
|
|
|
- Attachment (Multi Edit)
|
|
|
|
summary: Delete multiple attachments.
|
|
|
|
description: |
|
|
|
|
Given a list of attachment ids, deletes all of them.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: [ ]
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/IdList"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
/sec/queue/state:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-jobs-get-state"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Job Queue ]
|
|
|
|
summary: Get complete state of job queue.
|
|
|
|
description: |
|
|
|
|
Get the current state of the job qeue. The job qeue contains
|
|
|
|
all processing tasks and other long-running operations. All
|
|
|
|
users/collectives share processing resources.
|
2020-01-10 22:41:03 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2019-07-22 22:53:30 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/JobQueueState"
|
|
|
|
/sec/queue/{id}/cancel:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-jobs-cancel-job"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags: [ Job Queue ]
|
|
|
|
summary: Cancel a job.
|
|
|
|
description: |
|
|
|
|
Tries to cancel a job and remove it from the queue. If the job
|
|
|
|
is running, a cancel request is send to the corresponding joex
|
|
|
|
instance. Otherwise the job is removed from the queue.
|
2020-01-10 22:41:03 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2019-07-22 22:53:30 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-09-05 14:00:41 +00:00
|
|
|
/sec/queue/{id}/priority:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-jobs-set-prio"
|
2020-09-05 14:00:41 +00:00
|
|
|
tags: [ Job Queue ]
|
|
|
|
summary: Change the priority of a waiting job.
|
|
|
|
description: |
|
|
|
|
A waiting job can change its priority. If the job is not in
|
|
|
|
state waiting, this operation fails.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/JobPriority"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-05-05 20:48:08 +00:00
|
|
|
/sec/email/settings/smtp:
|
2020-01-04 23:12:23 +00:00
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-settings-smtp-all"
|
2020-01-04 23:12:23 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: List email settings for current user.
|
|
|
|
description: |
|
|
|
|
List all available e-mail settings for the current user.
|
|
|
|
E-Mail settings specify smtp connections that can be used to
|
|
|
|
sent e-mails.
|
|
|
|
|
|
|
|
Multiple e-mail settings can be specified, they are
|
2020-01-05 22:23:28 +00:00
|
|
|
distinguished by their `name`. The query `q` parameter does a
|
|
|
|
simple substring search in the connection name.
|
2020-01-10 22:41:03 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-01-05 22:23:28 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/q"
|
2020-01-04 23:12:23 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/EmailSettingsList"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-new-smtp-settings"
|
2020-01-04 23:12:23 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Create new email settings
|
|
|
|
description: |
|
|
|
|
Create new e-mail settings.
|
2020-01-10 22:41:03 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-01-04 23:12:23 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/EmailSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-05-05 20:48:08 +00:00
|
|
|
/sec/email/settings/smtp/{name}:
|
2020-01-04 23:12:23 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/name"
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-get-smtp-details"
|
2020-01-04 23:12:23 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Return specific email settings by name.
|
|
|
|
description: |
|
|
|
|
Return the stored e-mail settings for the given connection
|
|
|
|
name.
|
2020-01-10 22:41:03 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-01-04 23:12:23 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/EmailSettings"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-set-smtp-settings"
|
2020-01-04 23:12:23 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Change specific email settings.
|
|
|
|
description: |
|
|
|
|
Changes all settings for the connection with the given `name`.
|
2020-01-10 22:41:03 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-01-04 23:12:23 +00:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/EmailSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-delete-smtp-settings"
|
2020-01-04 23:12:23 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Delete e-mail settings.
|
|
|
|
description: |
|
|
|
|
Deletes the e-mail settings with the specified `name`.
|
2020-01-10 22:41:03 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-01-04 23:12:23 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-05-05 20:48:08 +00:00
|
|
|
/sec/email/settings/imap:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-imap-settings-all"
|
2020-05-05 20:48:08 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: List email settings for current user.
|
|
|
|
description: |
|
|
|
|
List all available e-mail settings for the current user.
|
|
|
|
E-Mail settings specify imap connections that can be used to
|
|
|
|
retrieve e-mails.
|
|
|
|
|
|
|
|
Multiple e-mail settings can be specified, they are
|
|
|
|
distinguished by their `name`. The query `q` parameter does a
|
|
|
|
simple substring search in the connection name.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/q"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ImapSettingsList"
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-new-imap-settings"
|
2020-05-05 20:48:08 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Create new email settings
|
|
|
|
description: |
|
|
|
|
Create new e-mail settings.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ImapSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/email/settings/imap/{name}:
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/name"
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-get-imap-details"
|
2020-05-05 20:48:08 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Return specific email settings by name.
|
|
|
|
description: |
|
|
|
|
Return the stored e-mail settings for the given connection
|
|
|
|
name.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ImapSettings"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-set-imap-settings"
|
2020-05-05 20:48:08 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Change specific email settings.
|
|
|
|
description: |
|
|
|
|
Changes all settings for the connection with the given `name`.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ImapSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-delete-imap-settings"
|
2020-05-05 20:48:08 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Delete e-mail settings.
|
|
|
|
description: |
|
|
|
|
Deletes the e-mail settings with the specified `name`.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-01-04 23:12:23 +00:00
|
|
|
|
|
|
|
/sec/email/send/{name}/{id}:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-send-with-item"
|
2020-01-04 23:12:23 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Send an email.
|
|
|
|
description: |
|
2020-01-10 22:41:03 +00:00
|
|
|
Sends an email as specified in the body of the request.
|
|
|
|
|
|
|
|
The item's attachment are added to the mail if requested.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-01-04 23:12:23 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/name"
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/SimpleMail"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-01-10 22:41:03 +00:00
|
|
|
/sec/email/sent/item/{id}:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-get-sent-mails-to-item"
|
2020-01-10 22:41:03 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Get sent mail related to an item
|
|
|
|
description: |
|
|
|
|
Return all mails that have been sent related to the item with
|
|
|
|
id `id`.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/SentMails"
|
|
|
|
/sec/email/sent/mail/{mailId}:
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/mailId"
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-get-sent-mail"
|
2020-01-10 22:41:03 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Get sent single mail related to an item
|
|
|
|
description: |
|
|
|
|
Return one mail with the given id.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/SentMail"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-email-delete-sent-mail"
|
2020-01-10 22:41:03 +00:00
|
|
|
tags: [ E-Mail ]
|
|
|
|
summary: Delete a sent mail.
|
|
|
|
description: |
|
|
|
|
Delete a sent mail.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-04-19 23:02:45 +00:00
|
|
|
/sec/calevent/check:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-calevent-check"
|
2020-04-19 23:02:45 +00:00
|
|
|
tags: [ Utility ]
|
|
|
|
summary: Check a calendar event string
|
|
|
|
description: |
|
|
|
|
For ui purposes, this route checks a calendar event string and
|
|
|
|
either returns the normal form or an error message.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CalEventCheck"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CalEventCheckResult"
|
2020-04-19 18:31:28 +00:00
|
|
|
/sec/usertask/notifydueitems:
|
2020-04-17 22:50:46 +00:00
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-notify-all"
|
2020-04-21 20:32:43 +00:00
|
|
|
tags: [ User Tasks ]
|
2020-04-19 18:31:28 +00:00
|
|
|
summary: Get settings for "Notify Due Items" task
|
2020-04-17 22:50:46 +00:00
|
|
|
description: |
|
2021-06-12 17:12:52 +00:00
|
|
|
Return all current notification settings of the authenticated
|
2020-04-17 22:50:46 +00:00
|
|
|
user. Users can be notified on due items via e-mail. This is
|
2020-06-12 23:38:59 +00:00
|
|
|
done by periodically querying items. It is possible to have
|
|
|
|
multiple tasks.
|
2020-04-17 22:50:46 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-06-12 23:38:59 +00:00
|
|
|
$ref: "#/components/schemas/NotificationSettingsList"
|
2020-04-17 22:50:46 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-notify-new"
|
2020-04-21 20:32:43 +00:00
|
|
|
tags: [ User Tasks ]
|
2020-06-12 23:38:59 +00:00
|
|
|
summary: Create settings for "Notify Due Items" task
|
2020-04-17 22:50:46 +00:00
|
|
|
description: |
|
2020-06-12 23:38:59 +00:00
|
|
|
Create a new notification settings task of the authenticated
|
|
|
|
user. The id field in the input is ignored.
|
2020-04-17 22:50:46 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
2020-04-21 20:32:43 +00:00
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/NotificationSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-06-12 23:38:59 +00:00
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-notify-edit"
|
2020-06-12 23:38:59 +00:00
|
|
|
tags: [ User Tasks ]
|
|
|
|
summary: Change settings for "Notify Due Items" task
|
|
|
|
description: |
|
|
|
|
Change the settings for a notify-due-items task. The task is
|
|
|
|
looked up by its id.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/NotificationSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
/sec/usertask/notifydueitems/{id}:
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-notify-get-details"
|
2020-06-12 23:38:59 +00:00
|
|
|
tags: [ User Tasks ]
|
2021-06-12 17:12:52 +00:00
|
|
|
summary: Get notify items settings for a specific task
|
2020-06-12 23:38:59 +00:00
|
|
|
description: |
|
|
|
|
Return the current settings for a single notify-due-items task
|
|
|
|
of the authenticated user.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/NotificationSettings"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-notify-delete"
|
2020-06-12 23:38:59 +00:00
|
|
|
tags: [ User Tasks ]
|
2021-06-12 17:12:52 +00:00
|
|
|
summary: Delete a specific notify due items task
|
2020-06-12 23:38:59 +00:00
|
|
|
description: |
|
|
|
|
Delete the settings to a notify-due-items task of the
|
|
|
|
authenticated user.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-04-21 20:32:43 +00:00
|
|
|
/sec/usertask/notifydueitems/startonce:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-notify-start-now"
|
2020-04-21 20:32:43 +00:00
|
|
|
tags: [ User Tasks ]
|
|
|
|
summary: Start the "Notify Due Items" task once
|
|
|
|
description: |
|
|
|
|
Starts the notify-due-items task just once, discarding the
|
|
|
|
schedule and not updating the periodic task.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
2020-04-17 22:50:46 +00:00
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/NotificationSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-01-04 23:12:23 +00:00
|
|
|
|
2020-05-18 07:55:49 +00:00
|
|
|
/sec/usertask/scanmailbox:
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-scanmailbox-get-all"
|
2020-05-18 07:55:49 +00:00
|
|
|
tags: [ User Tasks ]
|
|
|
|
summary: Get settings for "Scan Mailbox" task
|
|
|
|
description: |
|
2020-05-21 07:00:45 +00:00
|
|
|
Return the current settings for the scan-mailbox tasks of the
|
2020-05-18 07:55:49 +00:00
|
|
|
authenticated user. Users can periodically fetch mails to be
|
2020-05-21 07:00:45 +00:00
|
|
|
imported into docspell. It is possible to have multiple of
|
|
|
|
these tasks.
|
2020-05-18 07:55:49 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-05-21 07:00:45 +00:00
|
|
|
$ref: "#/components/schemas/ScanMailboxSettingsList"
|
2020-05-18 07:55:49 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-scanmailbox-new"
|
2020-05-21 07:00:45 +00:00
|
|
|
tags: [ User Tasks ]
|
|
|
|
summary: Create settings for "Scan Mailbox" task
|
|
|
|
description: |
|
|
|
|
Create new settings for a scan-mailbox task. The id field in
|
|
|
|
the input data is ignored.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ScanMailboxSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-scanmailbox-edit"
|
2020-05-18 07:55:49 +00:00
|
|
|
tags: [ User Tasks ]
|
2020-06-12 23:38:59 +00:00
|
|
|
summary: Change settings for a "Scan Mailbox" task
|
2020-05-18 07:55:49 +00:00
|
|
|
description: |
|
2020-05-21 07:00:45 +00:00
|
|
|
Change the settings for a scan-mailbox task. The task is
|
|
|
|
looked up by its id.
|
2020-05-18 07:55:49 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ScanMailboxSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-05-21 07:00:45 +00:00
|
|
|
/sec/usertask/scanmailbox/{id}:
|
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-scanmailbox-get-details"
|
2020-05-21 07:00:45 +00:00
|
|
|
tags: [ User Tasks ]
|
|
|
|
summary: Get settings for "Scan Mailbox" task
|
|
|
|
description: |
|
|
|
|
Return the current settings for a single scan-mailbox task of
|
|
|
|
the authenticated user. Users can periodically fetch mails to
|
|
|
|
be imported into docspell.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ScanMailboxSettings"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-scanmailbox-delete"
|
2020-05-21 07:00:45 +00:00
|
|
|
tags: [ User Tasks ]
|
|
|
|
summary: Delete a scan-mailbox task.
|
|
|
|
description: |
|
|
|
|
Deletes the settings to a scan-mailbox task of the
|
|
|
|
authenticated user.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-05-18 07:55:49 +00:00
|
|
|
/sec/usertask/scanmailbox/startonce:
|
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-usertask-scanmailbox-start-now"
|
2020-05-18 07:55:49 +00:00
|
|
|
tags: [ User Tasks ]
|
|
|
|
summary: Start the "Scan Mailbox" task once
|
|
|
|
description: |
|
|
|
|
Starts the scan-mailbox task just once, discarding the
|
|
|
|
schedule and not updating the periodic task.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ScanMailboxSettings"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-11-16 22:27:26 +00:00
|
|
|
/sec/customfield:
|
2020-09-28 20:54:35 +00:00
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-customfield-get-all"
|
2020-09-28 20:54:35 +00:00
|
|
|
tags: [ Custom Fields ]
|
|
|
|
summary: Get all defined custom fields.
|
|
|
|
description: |
|
2021-08-24 19:35:57 +00:00
|
|
|
Get all custom fields defined for the current collective. The
|
|
|
|
`sort` parameter can be used to control the order of the
|
|
|
|
returned list. It can take a value from: `name`, `-name`,
|
|
|
|
`label`, `-label`, `type`, `-type`.
|
2020-09-28 20:54:35 +00:00
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
2020-11-16 11:39:49 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/q"
|
2021-08-24 19:35:57 +00:00
|
|
|
- $ref: "#/components/parameters/sort"
|
2020-09-28 20:54:35 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CustomFieldList"
|
2020-11-16 11:39:49 +00:00
|
|
|
post:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-customfield-new"
|
2020-11-16 11:39:49 +00:00
|
|
|
tags: [ Custom Fields ]
|
|
|
|
summary: Create a new custom field
|
|
|
|
description: |
|
|
|
|
Creates a new custom field.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/NewCustomField"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
|
2020-11-16 22:27:26 +00:00
|
|
|
/sec/customfield/{id}:
|
2020-11-16 21:06:48 +00:00
|
|
|
parameters:
|
|
|
|
- $ref: "#/components/parameters/id"
|
2020-11-16 11:39:49 +00:00
|
|
|
get:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-customfield-get-details"
|
2020-11-16 11:39:49 +00:00
|
|
|
tags: [ Custom Fields ]
|
|
|
|
summary: Get details about a custom field.
|
|
|
|
description: |
|
|
|
|
Returns the details about a custom field.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/CustomField"
|
|
|
|
put:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-customfield-edit"
|
2020-11-16 11:39:49 +00:00
|
|
|
tags: [ Custom Fields ]
|
|
|
|
summary: Change a custom field
|
|
|
|
description: |
|
|
|
|
Change properties of a custom field.
|
|
|
|
|
|
|
|
Changing the label has no further impliciations, since it is
|
|
|
|
only used for displaying. The name and type on the other hand
|
|
|
|
have consequences: name must be unique and the type determines
|
|
|
|
how the value is stored internally.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/NewCustomField"
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
|
|
|
delete:
|
2021-06-12 17:12:52 +00:00
|
|
|
operationId: "sec-customfield-delete"
|
2020-11-16 11:39:49 +00:00
|
|
|
tags: [ Custom Fields ]
|
|
|
|
summary: Deletes a custom field.
|
|
|
|
description: |
|
|
|
|
Deletes the custom field and all its relations.
|
|
|
|
security:
|
|
|
|
- authTokenHeader: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Ok
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/BasicResult"
|
2020-09-28 20:54:35 +00:00
|
|
|
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
components:
|
|
|
|
schemas:
|
2021-10-02 13:16:02 +00:00
|
|
|
ShareData:
|
|
|
|
description: |
|
|
|
|
Editable data for a share.
|
|
|
|
required:
|
|
|
|
- query
|
|
|
|
- enabled
|
|
|
|
- publishUntil
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
query:
|
|
|
|
type: string
|
|
|
|
format: itemquery
|
|
|
|
enabled:
|
|
|
|
type: boolean
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
publishUntil:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
removePassword:
|
|
|
|
type: boolean
|
|
|
|
description: |
|
|
|
|
For an update request, this can control whether to delete
|
|
|
|
the password. Otherwise if the password is not set, it
|
|
|
|
will not be changed. When adding a new share, this has no
|
|
|
|
effect.
|
|
|
|
|
|
|
|
ShareDetail:
|
|
|
|
description: |
|
|
|
|
Details for an existing share.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- query
|
|
|
|
- enabled
|
|
|
|
- publishAt
|
|
|
|
- publishUntil
|
|
|
|
- password
|
|
|
|
- views
|
2021-10-02 21:05:19 +00:00
|
|
|
- expired
|
2021-10-02 13:16:02 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
query:
|
|
|
|
type: string
|
|
|
|
format: itemquery
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
enabled:
|
|
|
|
type: boolean
|
|
|
|
publishAt:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
publishUntil:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2021-10-02 21:05:19 +00:00
|
|
|
expired:
|
|
|
|
type: boolean
|
2021-10-02 13:16:02 +00:00
|
|
|
password:
|
|
|
|
type: boolean
|
|
|
|
views:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
lastAccess:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
|
|
|
|
ShareList:
|
|
|
|
description: |
|
|
|
|
A list of shares.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/ShareDetail"
|
|
|
|
|
2021-09-06 22:18:02 +00:00
|
|
|
DeleteUserData:
|
|
|
|
description: |
|
|
|
|
An excerpt of data that would be deleted when deleting the
|
|
|
|
associated user.
|
|
|
|
required:
|
|
|
|
- folders
|
|
|
|
- sentMails
|
|
|
|
properties:
|
|
|
|
folders:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
sentMails:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
|
2021-08-31 19:29:07 +00:00
|
|
|
SecondFactor:
|
|
|
|
description: |
|
|
|
|
Provide a second factor for login.
|
|
|
|
required:
|
|
|
|
- token
|
|
|
|
- otp
|
|
|
|
- rememberMe
|
|
|
|
properties:
|
|
|
|
token:
|
|
|
|
type: string
|
|
|
|
otp:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
rememberMe:
|
|
|
|
type: boolean
|
2021-08-30 14:15:13 +00:00
|
|
|
OtpState:
|
|
|
|
description: |
|
|
|
|
The state for OTP for an account
|
|
|
|
required:
|
|
|
|
- enabled
|
|
|
|
properties:
|
|
|
|
enabled:
|
|
|
|
type: boolean
|
|
|
|
created:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
OtpResult:
|
|
|
|
description: |
|
|
|
|
The result from initializing OTP. It contains the shared
|
|
|
|
secret.
|
|
|
|
required:
|
|
|
|
- authenticatorUrl
|
|
|
|
- secret
|
|
|
|
- authType
|
|
|
|
- issuer
|
|
|
|
properties:
|
|
|
|
authenticatorUrl:
|
|
|
|
type: string
|
|
|
|
format: uri
|
|
|
|
secret:
|
|
|
|
type: string
|
|
|
|
authType:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- totp
|
|
|
|
issuer:
|
|
|
|
type: string
|
|
|
|
|
|
|
|
OtpConfirm:
|
|
|
|
description: |
|
|
|
|
Transports a one time password.
|
|
|
|
required:
|
|
|
|
- otp
|
|
|
|
properties:
|
|
|
|
otp:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
|
2021-01-04 15:32:54 +00:00
|
|
|
ResetPassword:
|
|
|
|
description: |
|
|
|
|
The account to reset the password.
|
|
|
|
required:
|
|
|
|
- account
|
|
|
|
properties:
|
|
|
|
account:
|
|
|
|
type: string
|
|
|
|
format: accountid
|
|
|
|
|
|
|
|
ResetPasswordResult:
|
|
|
|
description: |
|
|
|
|
Contains the newly generated password or an error.
|
|
|
|
required:
|
|
|
|
- success
|
|
|
|
- newPassword
|
|
|
|
- message
|
|
|
|
properties:
|
|
|
|
success:
|
|
|
|
type: boolean
|
|
|
|
newPassword:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
|
2020-11-16 22:27:26 +00:00
|
|
|
ItemsAndFieldValue:
|
|
|
|
description: |
|
|
|
|
Holds a list of item ids and a custom field value.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
- field
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
field:
|
|
|
|
$ref: "#/components/schemas/CustomFieldValue"
|
|
|
|
|
2020-10-25 14:08:44 +00:00
|
|
|
ItemsAndRefs:
|
|
|
|
description: |
|
|
|
|
Holds a list of item ids and a list of ids of some other
|
|
|
|
related entity (e.g. tags).
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
- refs
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
refs:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
ItemsAndRef:
|
|
|
|
description: |
|
|
|
|
Holds a list of item ids and a single optional id of some
|
|
|
|
other related entity (e.g. person, org).
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
ref:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
ItemsAndName:
|
|
|
|
description: |
|
|
|
|
Holds a list of item ids and an item name.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
- name
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
ItemsAndDirection:
|
|
|
|
description: |
|
|
|
|
Holds a list of item ids and a direction value.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
- direction
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
direction:
|
|
|
|
type: string
|
|
|
|
format: direction
|
|
|
|
ItemsAndDate:
|
|
|
|
description: |
|
|
|
|
Holds a list of item ids and a date value.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
date:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
|
|
|
|
|
2020-09-28 20:54:35 +00:00
|
|
|
CustomFieldList:
|
|
|
|
description: |
|
|
|
|
A list of known custom fields.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/CustomField"
|
|
|
|
|
2020-11-22 00:21:21 +00:00
|
|
|
ItemFieldValue:
|
|
|
|
description: |
|
|
|
|
Information about a custom field on an item.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- ftype
|
|
|
|
- value
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
ftype:
|
|
|
|
type: string
|
|
|
|
format: customfieldtype
|
|
|
|
enum:
|
|
|
|
- text
|
|
|
|
- numeric
|
|
|
|
- date
|
|
|
|
- bool
|
|
|
|
- money
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
|
2020-11-16 21:06:48 +00:00
|
|
|
CustomFieldValue:
|
|
|
|
description: |
|
|
|
|
Data structure to update the value of a custom field.
|
|
|
|
required:
|
|
|
|
- field
|
|
|
|
- value
|
|
|
|
properties:
|
|
|
|
field:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
|
2020-11-16 11:39:49 +00:00
|
|
|
NewCustomField:
|
|
|
|
description: |
|
|
|
|
Data for creating a custom field.
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- ftype
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
ftype:
|
|
|
|
type: string
|
|
|
|
format: customfieldtype
|
2020-11-16 22:27:26 +00:00
|
|
|
enum:
|
|
|
|
- text
|
|
|
|
- numeric
|
|
|
|
- date
|
|
|
|
- bool
|
|
|
|
- money
|
2020-11-16 11:39:49 +00:00
|
|
|
|
2020-09-28 20:54:35 +00:00
|
|
|
CustomField:
|
|
|
|
description: |
|
|
|
|
A custom field definition.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- ftype
|
2020-11-16 11:39:49 +00:00
|
|
|
- usages
|
2020-09-28 20:54:35 +00:00
|
|
|
- created
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
2020-11-16 11:39:49 +00:00
|
|
|
format: ident
|
|
|
|
label:
|
|
|
|
type: string
|
2020-09-28 20:54:35 +00:00
|
|
|
ftype:
|
|
|
|
type: string
|
|
|
|
format: customfieldtype
|
2020-11-16 22:27:26 +00:00
|
|
|
enum:
|
|
|
|
- text
|
|
|
|
- numeric
|
|
|
|
- date
|
|
|
|
- bool
|
|
|
|
- money
|
2020-11-16 11:39:49 +00:00
|
|
|
usages:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2020-09-28 20:54:35 +00:00
|
|
|
created:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
|
2020-09-05 14:00:41 +00:00
|
|
|
JobPriority:
|
|
|
|
description: |
|
|
|
|
Transfer the priority of a job.
|
|
|
|
required:
|
|
|
|
- priority
|
|
|
|
properties:
|
|
|
|
priority:
|
|
|
|
type: string
|
|
|
|
format: priority
|
|
|
|
enum:
|
|
|
|
- high
|
|
|
|
- low
|
2020-08-13 18:52:43 +00:00
|
|
|
IdList:
|
|
|
|
description:
|
|
|
|
A list of identifiers.
|
|
|
|
required:
|
|
|
|
- ids
|
|
|
|
properties:
|
|
|
|
ids:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2020-08-08 13:03:28 +00:00
|
|
|
StringList:
|
|
|
|
description: |
|
|
|
|
A simple list of strings.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2020-07-11 09:38:57 +00:00
|
|
|
FolderList:
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
A list of folders with their member counts.
|
2020-07-02 21:11:42 +00:00
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
2020-07-11 09:38:57 +00:00
|
|
|
$ref: "#/components/schemas/FolderItem"
|
|
|
|
FolderItem:
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
An item in a folder list.
|
2020-07-02 21:11:42 +00:00
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- owner
|
|
|
|
- created
|
2020-07-09 22:46:14 +00:00
|
|
|
- isMember
|
|
|
|
- memberCount
|
2020-07-02 21:11:42 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
owner:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
created:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2020-07-09 22:46:14 +00:00
|
|
|
isMember:
|
|
|
|
type: boolean
|
|
|
|
memberCount:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2020-07-11 09:38:57 +00:00
|
|
|
NewFolder:
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
Data required to create a new folder.
|
2020-07-02 21:11:42 +00:00
|
|
|
required:
|
|
|
|
- name
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2020-07-11 09:38:57 +00:00
|
|
|
FolderDetail:
|
2020-07-02 21:11:42 +00:00
|
|
|
description: |
|
2020-07-11 09:38:57 +00:00
|
|
|
Details about a folder.
|
2020-07-02 21:11:42 +00:00
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- owner
|
|
|
|
- created
|
2020-07-09 22:46:14 +00:00
|
|
|
- isMember
|
|
|
|
- memberCount
|
2020-07-02 21:11:42 +00:00
|
|
|
- members
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
owner:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
created:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2020-07-09 22:46:14 +00:00
|
|
|
isMember:
|
|
|
|
type: boolean
|
|
|
|
memberCount:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2020-07-02 21:11:42 +00:00
|
|
|
members:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
2021-03-01 11:37:25 +00:00
|
|
|
ItemQuery:
|
2020-06-23 21:02:58 +00:00
|
|
|
description: |
|
2021-03-01 11:37:25 +00:00
|
|
|
Query description for a search. Is used for fulltext-only
|
|
|
|
searches and combined searches.
|
2020-06-23 21:02:58 +00:00
|
|
|
required:
|
|
|
|
- query
|
|
|
|
properties:
|
|
|
|
offset:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
limit:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
description: |
|
|
|
|
The maximum number of results to return. Note that this
|
|
|
|
limit is a soft limit, there is some hard limit on the
|
|
|
|
server, too.
|
2021-03-01 11:37:25 +00:00
|
|
|
withDetails:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2021-08-14 13:08:29 +00:00
|
|
|
searchMode:
|
|
|
|
type: string
|
|
|
|
format: searchmode
|
|
|
|
enum:
|
|
|
|
- normal
|
|
|
|
- trashed
|
2021-08-21 13:08:46 +00:00
|
|
|
- all
|
2021-08-14 13:08:29 +00:00
|
|
|
default: normal
|
2021-08-14 12:53:05 +00:00
|
|
|
description: |
|
2021-08-14 13:08:29 +00:00
|
|
|
Specify whether the search query should apply to
|
|
|
|
soft-deleted items or not.
|
2020-06-23 21:02:58 +00:00
|
|
|
query:
|
|
|
|
type: string
|
|
|
|
description: |
|
|
|
|
A query searching the contents of documents.
|
2020-05-24 15:29:28 +00:00
|
|
|
MoveAttachment:
|
|
|
|
description: |
|
|
|
|
Data to move an attachment to another position.
|
|
|
|
required:
|
|
|
|
- source
|
|
|
|
- target
|
|
|
|
properties:
|
|
|
|
source:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
target:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2020-05-21 07:00:45 +00:00
|
|
|
ScanMailboxSettingsList:
|
|
|
|
description: |
|
|
|
|
A list of scan-mailbox tasks.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/ScanMailboxSettings"
|
2020-05-18 07:55:49 +00:00
|
|
|
ScanMailboxSettings:
|
|
|
|
description: |
|
|
|
|
Settings for the scan mailbox task.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- enabled
|
|
|
|
- imapConnection
|
|
|
|
- schedule
|
|
|
|
- folders
|
2020-05-18 09:43:18 +00:00
|
|
|
- deleteMail
|
2020-05-18 07:55:49 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
enabled:
|
|
|
|
type: boolean
|
2021-03-27 21:06:44 +00:00
|
|
|
summary:
|
|
|
|
type: string
|
2020-05-18 07:55:49 +00:00
|
|
|
imapConnection:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
folders:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
schedule:
|
|
|
|
type: string
|
|
|
|
format: calevent
|
|
|
|
receivedSinceHours:
|
|
|
|
type: integer
|
2020-05-18 09:43:18 +00:00
|
|
|
format: int32
|
2020-05-18 07:55:49 +00:00
|
|
|
description: |
|
|
|
|
Look only for mails newer than `receivedSinceHours' hours.
|
|
|
|
targetFolder:
|
|
|
|
type: string
|
|
|
|
description: |
|
|
|
|
The folder to move all mails into that have been
|
|
|
|
successfully submitted to docspell.
|
|
|
|
deleteMail:
|
|
|
|
type: boolean
|
|
|
|
description: |
|
|
|
|
Whether to delete all successfully imported mails. This
|
|
|
|
only applies, if `targetFolder' is not set.
|
|
|
|
direction:
|
|
|
|
type: string
|
|
|
|
format: direction
|
|
|
|
description: |
|
|
|
|
The direction to apply to items resulting from importing
|
|
|
|
mails. If not set, the value is guessed based on the from
|
|
|
|
and to mail headers and your address book.
|
2020-07-14 19:25:44 +00:00
|
|
|
itemFolder:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
description: |
|
|
|
|
The folder id that is applied to items resulting from
|
|
|
|
importing mails. If the folder id is not valid when the
|
|
|
|
task executes, items have no folder set.
|
2020-11-11 00:08:07 +00:00
|
|
|
tags:
|
|
|
|
$ref: "#/components/schemas/StringList"
|
|
|
|
fileFilter:
|
|
|
|
description: |
|
2020-11-13 19:59:03 +00:00
|
|
|
A glob to filter attachments to import by file name.
|
|
|
|
type: string
|
|
|
|
format: glob
|
|
|
|
subjectFilter:
|
|
|
|
description: |
|
|
|
|
A glob to filter attachments to import by subject.
|
2020-11-11 00:08:07 +00:00
|
|
|
type: string
|
|
|
|
format: glob
|
2020-11-23 13:31:58 +00:00
|
|
|
language:
|
|
|
|
description: |
|
|
|
|
The language used for text extraction and analysis when
|
|
|
|
processing mails.
|
|
|
|
type: string
|
|
|
|
format: language
|
2021-01-24 00:46:31 +00:00
|
|
|
postHandleAll:
|
|
|
|
type: boolean
|
2021-08-21 11:37:17 +00:00
|
|
|
attachmentsOnly:
|
|
|
|
type: boolean
|
|
|
|
description: |
|
|
|
|
Import only the attachments e-mails and discard the body
|
2020-11-11 00:08:07 +00:00
|
|
|
|
2020-05-05 20:48:08 +00:00
|
|
|
ImapSettingsList:
|
|
|
|
description: |
|
|
|
|
A list of user email settings.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/ImapSettings"
|
|
|
|
ImapSettings:
|
|
|
|
description: |
|
|
|
|
IMAP settings for sending mail.
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- imapHost
|
|
|
|
- from
|
|
|
|
- sslType
|
|
|
|
- ignoreCertificates
|
2021-01-03 15:36:19 +00:00
|
|
|
- useOAuth
|
2020-05-05 20:48:08 +00:00
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
imapHost:
|
|
|
|
type: string
|
|
|
|
imapPort:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
imapUser:
|
|
|
|
type: string
|
|
|
|
imapPassword:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
sslType:
|
|
|
|
type: string
|
|
|
|
ignoreCertificates:
|
|
|
|
type: boolean
|
2021-01-03 15:36:19 +00:00
|
|
|
useOAuth:
|
|
|
|
type: boolean
|
|
|
|
description: |
|
|
|
|
Use the password as an OAuth2 access token with the
|
|
|
|
authentication scheme XOAUTH2.
|
2020-04-19 23:02:45 +00:00
|
|
|
CalEventCheckResult:
|
|
|
|
description: |
|
|
|
|
The result of checking a calendar event string.
|
|
|
|
required:
|
|
|
|
- success
|
|
|
|
- message
|
|
|
|
properties:
|
|
|
|
success:
|
|
|
|
type: boolean
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
event:
|
|
|
|
type: string
|
|
|
|
format: calevent
|
|
|
|
next:
|
2020-04-20 18:24:52 +00:00
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2020-04-19 23:02:45 +00:00
|
|
|
CalEventCheck:
|
|
|
|
description: |
|
|
|
|
A calendar event.
|
|
|
|
required:
|
|
|
|
- event
|
|
|
|
properties:
|
|
|
|
event:
|
|
|
|
type: string
|
2020-06-12 23:38:59 +00:00
|
|
|
NotificationSettingsList:
|
|
|
|
description: |
|
|
|
|
A list of notification settings.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/NotificationSettings"
|
2020-04-17 22:50:46 +00:00
|
|
|
NotificationSettings:
|
|
|
|
description: |
|
|
|
|
Settings for notifying about due items.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- enabled
|
|
|
|
- smtpConnection
|
2020-04-19 18:31:28 +00:00
|
|
|
- recipients
|
2020-04-17 22:50:46 +00:00
|
|
|
- schedule
|
|
|
|
- remindDays
|
2020-04-23 19:37:03 +00:00
|
|
|
- capOverdue
|
2020-04-17 22:50:46 +00:00
|
|
|
- tagsInclude
|
|
|
|
- tagsExclude
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
enabled:
|
|
|
|
type: boolean
|
2021-03-27 21:06:44 +00:00
|
|
|
summary:
|
|
|
|
type: string
|
2020-04-17 22:50:46 +00:00
|
|
|
smtpConnection:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2020-04-19 18:31:28 +00:00
|
|
|
recipients:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2020-04-17 22:50:46 +00:00
|
|
|
schedule:
|
|
|
|
type: string
|
|
|
|
format: calevent
|
|
|
|
remindDays:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2020-04-23 19:37:03 +00:00
|
|
|
description: |
|
|
|
|
Used to restrict items by their due dates. All items with
|
|
|
|
a due date lower than (now + remindDays) are searched.
|
|
|
|
capOverdue:
|
|
|
|
type: boolean
|
|
|
|
description: |
|
|
|
|
If this is true, the search is also restricted to due
|
|
|
|
dates greater than `now - remindDays'. Otherwise, due date
|
|
|
|
are not restricted in that direction (only lower than `now
|
|
|
|
+ remindDays' applies) and it is expected to restrict it
|
|
|
|
more using custom tags.
|
2020-04-17 22:50:46 +00:00
|
|
|
tagsInclude:
|
|
|
|
type: array
|
|
|
|
items:
|
2020-04-20 20:53:08 +00:00
|
|
|
$ref: "#/components/schemas/Tag"
|
2020-04-17 22:50:46 +00:00
|
|
|
tagsExclude:
|
|
|
|
type: array
|
|
|
|
items:
|
2020-04-20 20:53:08 +00:00
|
|
|
$ref: "#/components/schemas/Tag"
|
2020-01-10 22:41:03 +00:00
|
|
|
SentMails:
|
|
|
|
description: |
|
|
|
|
A list of sent mails.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/SentMail"
|
|
|
|
SentMail:
|
|
|
|
description: |
|
|
|
|
A mail that has been sent previously related to an item.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- sender
|
|
|
|
- connection
|
|
|
|
- recipients
|
|
|
|
- subject
|
|
|
|
- body
|
|
|
|
- created
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
sender:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
connection:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
recipients:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
subject:
|
|
|
|
type: string
|
|
|
|
body:
|
|
|
|
type: string
|
|
|
|
created:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2020-01-04 23:12:23 +00:00
|
|
|
SimpleMail:
|
|
|
|
description: |
|
2020-01-08 00:26:39 +00:00
|
|
|
A simple e-mail related to an item.
|
|
|
|
|
|
|
|
The mail may contain the item attachments as mail attachments.
|
|
|
|
If all item attachments should be send, set
|
|
|
|
`addAllAttachments` to `true`. Otherwise set it to `false` and
|
2020-01-10 22:41:03 +00:00
|
|
|
specify a list of file-ids that you want to include. This list
|
|
|
|
is ignored, if `addAllAttachments` is set to `true`.
|
2020-01-04 23:12:23 +00:00
|
|
|
required:
|
|
|
|
- recipients
|
2020-11-28 00:36:59 +00:00
|
|
|
- cc
|
|
|
|
- bcc
|
2020-01-04 23:12:23 +00:00
|
|
|
- subject
|
|
|
|
- body
|
2020-01-08 00:26:39 +00:00
|
|
|
- addAllAttachments
|
|
|
|
- attachmentIds
|
2020-01-04 23:12:23 +00:00
|
|
|
properties:
|
|
|
|
recipients:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2020-11-28 00:36:59 +00:00
|
|
|
cc:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
bcc:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2020-01-04 23:12:23 +00:00
|
|
|
subject:
|
|
|
|
type: string
|
|
|
|
body:
|
|
|
|
type: string
|
2020-01-08 00:26:39 +00:00
|
|
|
addAllAttachments:
|
|
|
|
type: boolean
|
2020-01-08 21:44:34 +00:00
|
|
|
attachmentIds:
|
2020-01-08 00:26:39 +00:00
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2020-01-04 23:12:23 +00:00
|
|
|
EmailSettingsList:
|
|
|
|
description: |
|
|
|
|
A list of user email settings.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/EmailSettings"
|
|
|
|
EmailSettings:
|
|
|
|
description: |
|
|
|
|
SMTP settings for sending mail.
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- smtpHost
|
|
|
|
- from
|
|
|
|
- sslType
|
2020-01-05 22:23:28 +00:00
|
|
|
- ignoreCertificates
|
2020-01-04 23:12:23 +00:00
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
smtpHost:
|
|
|
|
type: string
|
|
|
|
smtpPort:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
smtpUser:
|
|
|
|
type: string
|
|
|
|
smtpPassword:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
from:
|
|
|
|
type: string
|
2020-01-05 22:23:28 +00:00
|
|
|
replyTo:
|
|
|
|
type: string
|
2020-01-04 23:12:23 +00:00
|
|
|
sslType:
|
|
|
|
type: string
|
2020-01-05 22:23:28 +00:00
|
|
|
ignoreCertificates:
|
2020-01-04 23:12:23 +00:00
|
|
|
type: boolean
|
2019-12-31 22:17:07 +00:00
|
|
|
CheckFileResult:
|
|
|
|
description: |
|
|
|
|
Results when searching for file checksums.
|
|
|
|
required:
|
|
|
|
- exists
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
exists:
|
|
|
|
type: boolean
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/BasicItem"
|
|
|
|
BasicItem:
|
|
|
|
description: |
|
|
|
|
Basic properties about an item.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- direction
|
|
|
|
- state
|
|
|
|
- created
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
direction:
|
|
|
|
type: string
|
|
|
|
format: direction
|
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
format: itemstate
|
|
|
|
created:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
itemDate:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2019-07-22 22:53:30 +00:00
|
|
|
GenInvite:
|
|
|
|
description: |
|
|
|
|
A request to generate a new invitation key.
|
|
|
|
required:
|
|
|
|
- password
|
|
|
|
properties:
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
InviteResult:
|
|
|
|
description: |
|
|
|
|
The result when requesting new invitation keys.
|
|
|
|
required:
|
|
|
|
- success
|
|
|
|
- message
|
|
|
|
properties:
|
|
|
|
success:
|
|
|
|
type: boolean
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2020-12-15 22:33:03 +00:00
|
|
|
SearchStats:
|
|
|
|
description: |
|
|
|
|
A summary of search results.
|
|
|
|
required:
|
|
|
|
- count
|
|
|
|
- tagCloud
|
2021-04-11 11:57:49 +00:00
|
|
|
- tagCategoryCloud
|
2020-12-15 22:33:03 +00:00
|
|
|
- fieldStats
|
2020-12-16 00:14:27 +00:00
|
|
|
- folderStats
|
2020-12-15 22:33:03 +00:00
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
tagCloud:
|
|
|
|
$ref: "#/components/schemas/TagCloud"
|
2021-04-11 11:57:49 +00:00
|
|
|
tagCategoryCloud:
|
|
|
|
$ref: "#/components/schemas/NameCloud"
|
2020-12-15 22:33:03 +00:00
|
|
|
fieldStats:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/FieldStats"
|
2020-12-16 00:14:27 +00:00
|
|
|
folderStats:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/FolderStats"
|
2019-07-22 22:53:30 +00:00
|
|
|
ItemInsights:
|
|
|
|
description: |
|
|
|
|
Information about the items in docspell.
|
|
|
|
required:
|
|
|
|
- incomingCount
|
|
|
|
- outgoingCount
|
2021-08-14 12:18:03 +00:00
|
|
|
- deletedCount
|
2019-07-22 22:53:30 +00:00
|
|
|
- itemSize
|
|
|
|
- tagCloud
|
|
|
|
properties:
|
|
|
|
incomingCount:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
outgoingCount:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2021-08-14 12:18:03 +00:00
|
|
|
deletedCount:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2019-07-22 22:53:30 +00:00
|
|
|
itemSize:
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
tagCloud:
|
|
|
|
$ref: "#/components/schemas/TagCloud"
|
2020-12-16 00:14:27 +00:00
|
|
|
FolderStats:
|
|
|
|
description: |
|
|
|
|
Count of folder usage.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- owner
|
|
|
|
- count
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
owner:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2020-12-15 22:33:03 +00:00
|
|
|
FieldStats:
|
|
|
|
description: |
|
|
|
|
Basic statistics about a custom field.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- ftype
|
|
|
|
- count
|
|
|
|
- avg
|
|
|
|
- sum
|
|
|
|
- max
|
|
|
|
- min
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
ftype:
|
|
|
|
type: string
|
|
|
|
format: customfieldtype
|
|
|
|
enum:
|
|
|
|
- text
|
|
|
|
- numeric
|
|
|
|
- date
|
|
|
|
- bool
|
|
|
|
- money
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
sum:
|
|
|
|
type: number
|
|
|
|
format: double
|
|
|
|
avg:
|
|
|
|
type: number
|
|
|
|
format: double
|
|
|
|
max:
|
|
|
|
type: number
|
|
|
|
format: double
|
|
|
|
min:
|
|
|
|
type: number
|
|
|
|
format: double
|
2019-07-22 22:53:30 +00:00
|
|
|
TagCloud:
|
|
|
|
description: |
|
|
|
|
A tag "cloud"
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
2020-08-07 22:41:20 +00:00
|
|
|
$ref: "#/components/schemas/TagCount"
|
|
|
|
TagCount:
|
2019-07-22 22:53:30 +00:00
|
|
|
description: |
|
2021-04-11 11:57:49 +00:00
|
|
|
Structure for counting tags.
|
2019-07-22 22:53:30 +00:00
|
|
|
required:
|
2020-08-07 22:41:20 +00:00
|
|
|
- tag
|
2019-07-22 22:53:30 +00:00
|
|
|
- count
|
|
|
|
properties:
|
2020-08-07 22:41:20 +00:00
|
|
|
tag:
|
2020-08-08 05:56:55 +00:00
|
|
|
$ref: "#/components/schemas/Tag"
|
2019-07-22 22:53:30 +00:00
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2021-04-11 11:57:49 +00:00
|
|
|
|
|
|
|
NameCloud:
|
|
|
|
description: |
|
|
|
|
A set of counters.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/NameCount"
|
|
|
|
NameCount:
|
|
|
|
description: |
|
|
|
|
Generic structure for counting something.
|
|
|
|
required:
|
|
|
|
- count
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
AttachmentMeta:
|
|
|
|
description: |
|
|
|
|
Extracted meta data of an attachment.
|
|
|
|
required:
|
|
|
|
- content
|
|
|
|
- labels
|
|
|
|
- proposals
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
labels:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Label"
|
|
|
|
proposals:
|
|
|
|
$ref: "#/components/schemas/ItemProposals"
|
|
|
|
ItemProposals:
|
|
|
|
description: |
|
|
|
|
Metadata that has been suggested to an item.
|
|
|
|
required:
|
|
|
|
- corrOrg
|
|
|
|
- corrPerson
|
|
|
|
- concPerson
|
|
|
|
- concEquipment
|
|
|
|
- itemDate
|
|
|
|
- dueDate
|
|
|
|
properties:
|
|
|
|
corrOrg:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
corrPerson:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
concPerson:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
concEquipment:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
itemDate:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
dueDate:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
Label:
|
|
|
|
description: |
|
|
|
|
Extracted label.
|
|
|
|
required:
|
|
|
|
- labelType
|
|
|
|
- label
|
|
|
|
- beginPos
|
|
|
|
- endPos
|
|
|
|
properties:
|
|
|
|
labelType:
|
|
|
|
type: string
|
|
|
|
format: nertag
|
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
beginPos:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
endPos:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
OptionalDate:
|
|
|
|
description: |
|
|
|
|
Structure for sending an optional datetime value.
|
|
|
|
properties:
|
|
|
|
date:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
OptionalText:
|
|
|
|
description: |
|
|
|
|
Structure for sending optional text.
|
|
|
|
properties:
|
|
|
|
text:
|
|
|
|
type: string
|
|
|
|
OptionalId:
|
|
|
|
description: |
|
|
|
|
Structure for sending optional ids.
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
DirectionValue:
|
|
|
|
description: |
|
|
|
|
A direction.
|
|
|
|
required:
|
|
|
|
- direction
|
|
|
|
properties:
|
|
|
|
direction:
|
|
|
|
type: string
|
|
|
|
format: direction
|
|
|
|
ItemDetail:
|
|
|
|
description: |
|
|
|
|
Detailed information about an item.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- direction
|
|
|
|
- name
|
|
|
|
- source
|
|
|
|
- state
|
|
|
|
- created
|
|
|
|
- updated
|
|
|
|
- attachments
|
2020-02-23 13:25:32 +00:00
|
|
|
- sources
|
2020-03-22 20:35:50 +00:00
|
|
|
- archives
|
2019-07-22 22:53:30 +00:00
|
|
|
- tags
|
2020-11-22 00:21:21 +00:00
|
|
|
- customfields
|
2019-07-22 22:53:30 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
direction:
|
|
|
|
type: string
|
|
|
|
format: direction
|
|
|
|
enum:
|
|
|
|
- incoming
|
|
|
|
- outgoing
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
source:
|
|
|
|
type: string
|
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
format: itemstate
|
|
|
|
created:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
updated:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
itemDate:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
corrOrg:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
corrPerson:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
concPerson:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
concEquipment:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
inReplyTo:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
2020-07-11 10:00:19 +00:00
|
|
|
folder:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
2019-07-22 22:53:30 +00:00
|
|
|
dueDate:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
attachments:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Attachment"
|
2020-02-23 13:25:32 +00:00
|
|
|
sources:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/AttachmentSource"
|
2020-03-22 20:35:50 +00:00
|
|
|
archives:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/AttachmentSource"
|
2019-07-22 22:53:30 +00:00
|
|
|
tags:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Tag"
|
2020-11-22 00:21:21 +00:00
|
|
|
customfields:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/ItemFieldValue"
|
2019-07-22 22:53:30 +00:00
|
|
|
Attachment:
|
|
|
|
description: |
|
|
|
|
Information about an attachment to an item.
|
2020-02-23 13:25:32 +00:00
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- size
|
|
|
|
- contentType
|
|
|
|
- converted
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
size:
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
contentType:
|
|
|
|
type: string
|
|
|
|
format: mimetype
|
|
|
|
converted:
|
|
|
|
type: boolean
|
|
|
|
AttachmentSource:
|
|
|
|
description: |
|
|
|
|
The source or original file of an attachment.
|
2019-07-22 22:53:30 +00:00
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- size
|
|
|
|
- contentType
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2020-02-23 13:25:32 +00:00
|
|
|
description: |
|
|
|
|
The id is the attachment id.
|
2019-07-22 22:53:30 +00:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
size:
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
contentType:
|
|
|
|
type: string
|
|
|
|
format: mimetype
|
|
|
|
Registration:
|
|
|
|
description: |
|
|
|
|
Data for registering a new account.
|
|
|
|
required:
|
|
|
|
- collectiveName
|
|
|
|
- login
|
|
|
|
- password
|
|
|
|
properties:
|
|
|
|
collectiveName:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
login:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
invite:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
JobQueueState:
|
|
|
|
description: |
|
|
|
|
Contains all information about the job queue.
|
|
|
|
required:
|
|
|
|
- progress
|
|
|
|
- completed
|
|
|
|
- queued
|
|
|
|
properties:
|
|
|
|
progress:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/JobDetail"
|
|
|
|
completed:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/JobDetail"
|
|
|
|
queued:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/JobDetail"
|
|
|
|
JobDetail:
|
|
|
|
description: |
|
|
|
|
Details about a job.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- submitted
|
|
|
|
- priority
|
|
|
|
- state
|
|
|
|
- retries
|
|
|
|
- logs
|
|
|
|
- progress
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
submitted:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
priority:
|
|
|
|
type: string
|
|
|
|
format: priority
|
2020-09-05 14:00:41 +00:00
|
|
|
enum:
|
|
|
|
- high
|
|
|
|
- low
|
2019-07-22 22:53:30 +00:00
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
format: jobstate
|
|
|
|
enum:
|
|
|
|
- waiting
|
|
|
|
- scheduled
|
|
|
|
- running
|
|
|
|
- stuck
|
|
|
|
- failed
|
|
|
|
- canceled
|
|
|
|
- success
|
|
|
|
retries:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
logs:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/JobLogEvent"
|
|
|
|
progress:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
worker:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
started:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
finished:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
JobLogEvent:
|
|
|
|
description: |
|
|
|
|
A log output line.
|
|
|
|
required:
|
|
|
|
- time
|
|
|
|
- level
|
|
|
|
- message
|
|
|
|
properties:
|
|
|
|
time:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
level:
|
|
|
|
type: string
|
|
|
|
format: loglevel
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
PasswordChange:
|
|
|
|
description: |
|
|
|
|
Change the password, by given the old and new one.
|
|
|
|
required:
|
|
|
|
- currentPassword
|
|
|
|
- newPassword
|
|
|
|
properties:
|
|
|
|
currentPassword:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
newPassword:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
UserList:
|
|
|
|
description: |
|
|
|
|
A list of users.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/User"
|
|
|
|
User:
|
|
|
|
description: |
|
|
|
|
A user of a collective.
|
|
|
|
required:
|
2020-07-04 22:18:40 +00:00
|
|
|
- id
|
2019-07-22 22:53:30 +00:00
|
|
|
- login
|
|
|
|
- state
|
2021-09-05 15:08:52 +00:00
|
|
|
- source
|
2019-07-22 22:53:30 +00:00
|
|
|
- loginCount
|
|
|
|
- created
|
|
|
|
properties:
|
2020-07-04 22:18:40 +00:00
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2019-07-22 22:53:30 +00:00
|
|
|
login:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
format: userstate
|
|
|
|
enum:
|
|
|
|
- active
|
|
|
|
- disabled
|
2021-09-05 15:08:52 +00:00
|
|
|
source:
|
|
|
|
type: string
|
|
|
|
format: accountsource
|
|
|
|
enum:
|
|
|
|
- local
|
|
|
|
- openid
|
2019-07-22 22:53:30 +00:00
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
format: password
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
lastLogin:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
loginCount:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
created:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2020-09-23 21:00:19 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
ItemUploadMeta:
|
|
|
|
description: |
|
|
|
|
Meta information for an item upload. The user can specify some
|
|
|
|
structured information with a binary file.
|
|
|
|
|
2020-07-14 19:25:44 +00:00
|
|
|
Additional metadata is not required. However, if there is some
|
|
|
|
specified, you have to specifiy whether the corresponding
|
|
|
|
files should become one single item or if an item is created
|
|
|
|
for each file.
|
2019-07-22 22:53:30 +00:00
|
|
|
required:
|
|
|
|
- multiple
|
|
|
|
properties:
|
|
|
|
multiple:
|
|
|
|
type: boolean
|
|
|
|
default: true
|
2021-07-17 16:01:18 +00:00
|
|
|
description: |
|
|
|
|
If `true` (the default) each file in the upload request
|
|
|
|
results in a separate item. If it is set to `false`, then
|
|
|
|
all files in the request are put into a single item.
|
2019-07-22 22:53:30 +00:00
|
|
|
direction:
|
|
|
|
type: string
|
|
|
|
format: direction
|
2021-07-17 16:01:18 +00:00
|
|
|
default: "incoming"
|
|
|
|
description: |
|
|
|
|
The direction of the item, can be `Incoming` or `Outgoing`.
|
2020-07-14 19:25:44 +00:00
|
|
|
folder:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2021-07-17 16:01:18 +00:00
|
|
|
description: |
|
|
|
|
A folder can be specified that is attached to the new
|
2021-07-17 16:02:31 +00:00
|
|
|
item. The folder must exist and can be specified by id or
|
|
|
|
name.
|
2020-09-23 21:00:19 +00:00
|
|
|
skipDuplicates:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2021-07-17 16:01:18 +00:00
|
|
|
description: |
|
|
|
|
If set to `true` the processing will look for the same
|
|
|
|
file in Docspell and will skip processing this one if one
|
|
|
|
is found. The check is done via the file's checksum.
|
2020-11-11 00:08:07 +00:00
|
|
|
tags:
|
|
|
|
$ref: "#/components/schemas/StringList"
|
2021-07-17 16:01:18 +00:00
|
|
|
description: |
|
|
|
|
The `tags` input allows to provide tags that should be
|
|
|
|
applied to the item being created. This only works if the
|
|
|
|
tags already exist. It is possible to specify their ids or
|
|
|
|
names.
|
2020-11-11 00:08:07 +00:00
|
|
|
fileFilter:
|
|
|
|
type: string
|
|
|
|
format: glob
|
2021-07-17 16:01:18 +00:00
|
|
|
description: |
|
|
|
|
The `fileFilter` is an optional glob for filtering files
|
|
|
|
to import. Only applicable if archive files are uploaded.
|
|
|
|
It applies to all of them. For example, to only import pdf
|
|
|
|
files when uploading e-mails, use `*.pdf`. If the pattern
|
|
|
|
doesn't contain a slash `/`, then it is applied to all
|
|
|
|
file names. Otherwise it is applied to the complete path
|
|
|
|
in the archive (useful for zip files). Note that the
|
|
|
|
archive file itself is always saved completely, too.
|
2020-11-23 13:31:58 +00:00
|
|
|
language:
|
|
|
|
type: string
|
|
|
|
format: language
|
2021-07-17 16:01:18 +00:00
|
|
|
description: |
|
|
|
|
The `language` of the document may be specified, otherwise
|
|
|
|
the one from settings is used.
|
2021-08-21 11:37:17 +00:00
|
|
|
attachmentsOnly:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
description: |
|
|
|
|
Only applies to e-mail files. If `true` then only
|
|
|
|
attachments of the e-mail are imported and the e-mail body
|
|
|
|
is discarded. E-mails that don't have any attachments are
|
|
|
|
skipped.
|
2020-09-23 21:00:19 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
Collective:
|
|
|
|
description: |
|
|
|
|
Information about a collective.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- state
|
|
|
|
- created
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
format: collectivestate
|
|
|
|
created:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2020-08-28 20:17:49 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
CollectiveSettings:
|
|
|
|
description: |
|
|
|
|
Settings for a collective.
|
|
|
|
required:
|
|
|
|
- language
|
2020-05-23 11:53:36 +00:00
|
|
|
- integrationEnabled
|
2020-08-28 20:17:49 +00:00
|
|
|
- classifier
|
2021-08-15 10:28:42 +00:00
|
|
|
- emptyTrash
|
2021-09-30 08:35:38 +00:00
|
|
|
- passwords
|
2019-07-22 22:53:30 +00:00
|
|
|
properties:
|
|
|
|
language:
|
|
|
|
type: string
|
|
|
|
format: language
|
2020-05-23 11:53:36 +00:00
|
|
|
integrationEnabled:
|
|
|
|
type: boolean
|
|
|
|
description: |
|
|
|
|
Whether the collective has the integration endpoint
|
|
|
|
enabled.
|
2020-08-28 20:17:49 +00:00
|
|
|
classifier:
|
|
|
|
$ref: "#/components/schemas/ClassifierSetting"
|
2021-08-15 10:28:42 +00:00
|
|
|
emptyTrash:
|
|
|
|
$ref: "#/components/schemas/EmptyTrashSetting"
|
2021-09-30 08:35:38 +00:00
|
|
|
passwords:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
format: password
|
2021-08-15 10:28:42 +00:00
|
|
|
|
|
|
|
EmptyTrashSetting:
|
|
|
|
description: |
|
|
|
|
Settings for clearing the trash of items.
|
|
|
|
required:
|
|
|
|
- schedule
|
|
|
|
- minAge
|
|
|
|
properties:
|
|
|
|
schedule:
|
|
|
|
type: string
|
|
|
|
format: calevent
|
|
|
|
minAge:
|
|
|
|
type: integer
|
|
|
|
format: duration
|
2020-08-28 20:17:49 +00:00
|
|
|
|
|
|
|
ClassifierSetting:
|
|
|
|
description: |
|
|
|
|
Settings for learning a document classifier.
|
|
|
|
required:
|
|
|
|
- schedule
|
|
|
|
- itemCount
|
2021-01-19 00:20:13 +00:00
|
|
|
- categoryList
|
|
|
|
- listType
|
2020-08-28 20:17:49 +00:00
|
|
|
properties:
|
|
|
|
itemCount:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
description: |
|
|
|
|
The max. number of items to learn from. The newest items
|
|
|
|
are considered.
|
|
|
|
schedule:
|
|
|
|
type: string
|
|
|
|
format: calevent
|
2021-01-19 00:20:13 +00:00
|
|
|
categoryList:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
listType:
|
|
|
|
type: string
|
|
|
|
format: listtype
|
|
|
|
enum:
|
|
|
|
- blacklist
|
|
|
|
- whitelist
|
2020-08-28 20:17:49 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
SourceList:
|
|
|
|
description: |
|
|
|
|
A list of sources.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
2020-11-12 20:40:53 +00:00
|
|
|
$ref: "#/components/schemas/SourceAndTags"
|
2020-09-28 20:54:35 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
Source:
|
|
|
|
description: |
|
|
|
|
Data about a Source. A source defines the endpoint where
|
|
|
|
docspell receives files.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- abbrev
|
|
|
|
- counter
|
|
|
|
- enabled
|
|
|
|
- priority
|
|
|
|
- created
|
2021-08-23 12:19:11 +00:00
|
|
|
- attachmentsOnly
|
2019-07-22 22:53:30 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
abbrev:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
counter:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
enabled:
|
|
|
|
type: boolean
|
|
|
|
priority:
|
|
|
|
type: string
|
|
|
|
format: priority
|
2020-09-05 14:00:41 +00:00
|
|
|
enum:
|
|
|
|
- high
|
|
|
|
- low
|
2020-07-14 19:25:44 +00:00
|
|
|
folder:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2020-11-12 20:40:53 +00:00
|
|
|
fileFilter:
|
|
|
|
type: string
|
|
|
|
format: glob
|
2021-02-18 22:20:25 +00:00
|
|
|
language:
|
|
|
|
type: string
|
|
|
|
format: language
|
2019-07-22 22:53:30 +00:00
|
|
|
created:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2021-08-23 12:19:11 +00:00
|
|
|
attachmentsOnly:
|
|
|
|
type: boolean
|
2020-11-12 20:40:53 +00:00
|
|
|
SourceTagIn:
|
|
|
|
description: |
|
|
|
|
A source and optional tags (ids or names) for updating/adding.
|
|
|
|
required:
|
|
|
|
- source
|
|
|
|
- tags
|
|
|
|
properties:
|
|
|
|
source:
|
2020-11-16 08:53:44 +00:00
|
|
|
$ref: "#/components/schemas/Source"
|
2020-11-12 20:40:53 +00:00
|
|
|
tags:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
SourceAndTags:
|
|
|
|
description: |
|
|
|
|
A source and optional tags.
|
|
|
|
required:
|
|
|
|
- source
|
|
|
|
- tags
|
|
|
|
properties:
|
|
|
|
source:
|
2020-11-16 08:53:44 +00:00
|
|
|
$ref: "#/components/schemas/Source"
|
2020-11-12 20:40:53 +00:00
|
|
|
tags:
|
2020-11-16 08:53:44 +00:00
|
|
|
$ref: "#/components/schemas/TagList"
|
2020-11-12 20:40:53 +00:00
|
|
|
|
2019-07-22 22:53:30 +00:00
|
|
|
EquipmentList:
|
|
|
|
description: |
|
|
|
|
A list of equipments.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Equipment"
|
|
|
|
Equipment:
|
|
|
|
description: |
|
|
|
|
Some "thing" that occurs in documents.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- created
|
2021-03-10 22:54:04 +00:00
|
|
|
- use
|
2019-07-22 22:53:30 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
created:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2021-02-17 21:38:18 +00:00
|
|
|
notes:
|
|
|
|
type: string
|
2021-03-10 22:54:04 +00:00
|
|
|
use:
|
|
|
|
type: string
|
|
|
|
format: equipmentuse
|
|
|
|
enum:
|
|
|
|
- concerning
|
|
|
|
- disabled
|
2019-07-22 22:53:30 +00:00
|
|
|
ReferenceList:
|
|
|
|
description:
|
2020-10-25 14:08:44 +00:00
|
|
|
Listing of entities with their id and a name.
|
2019-07-22 22:53:30 +00:00
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
Person:
|
|
|
|
description: |
|
|
|
|
Basic information about a person.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- address
|
|
|
|
- contacts
|
|
|
|
- created
|
2021-02-16 21:37:56 +00:00
|
|
|
- use
|
2019-07-22 22:53:30 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
2020-11-30 20:04:29 +00:00
|
|
|
organization:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
2019-07-22 22:53:30 +00:00
|
|
|
address:
|
|
|
|
$ref: "#/components/schemas/Address"
|
|
|
|
contacts:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Contact"
|
|
|
|
notes:
|
|
|
|
type: string
|
2021-02-16 21:37:56 +00:00
|
|
|
use:
|
|
|
|
type: string
|
|
|
|
format: personuse
|
|
|
|
enum:
|
|
|
|
- concerning
|
|
|
|
- correspondent
|
|
|
|
- both
|
2021-03-10 22:54:04 +00:00
|
|
|
- disabled
|
2019-07-22 22:53:30 +00:00
|
|
|
description: |
|
|
|
|
Whether this person should be used to create suggestions
|
2021-02-16 21:37:56 +00:00
|
|
|
for the "concerning person", "correspondent" or both.
|
2019-07-22 22:53:30 +00:00
|
|
|
created:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
PersonList:
|
|
|
|
description: |
|
|
|
|
A list of persons.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Person"
|
|
|
|
Organization:
|
|
|
|
description: |
|
|
|
|
An organisation.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- address
|
|
|
|
- contacts
|
|
|
|
- created
|
2021-03-10 22:54:04 +00:00
|
|
|
- use
|
2019-07-22 22:53:30 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
address:
|
|
|
|
$ref: "#/components/schemas/Address"
|
|
|
|
contacts:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Contact"
|
|
|
|
notes:
|
|
|
|
type: string
|
|
|
|
created:
|
|
|
|
description: DateTime
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
2021-02-17 21:47:49 +00:00
|
|
|
shortName:
|
|
|
|
type: string
|
2021-03-10 22:54:04 +00:00
|
|
|
use:
|
|
|
|
type: string
|
|
|
|
format: orguse
|
|
|
|
enum:
|
|
|
|
- correspondent
|
|
|
|
- disabled
|
2019-07-22 22:53:30 +00:00
|
|
|
OrganizationList:
|
|
|
|
description: |
|
|
|
|
A list of full organization values.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Organization"
|
|
|
|
Address:
|
|
|
|
description: |
|
|
|
|
Postal address information.
|
|
|
|
required:
|
|
|
|
- street
|
|
|
|
- zip
|
|
|
|
- city
|
|
|
|
- country
|
|
|
|
properties:
|
|
|
|
street:
|
|
|
|
type: string
|
|
|
|
zip:
|
|
|
|
type: string
|
|
|
|
city:
|
|
|
|
type: string
|
|
|
|
country:
|
|
|
|
type: string
|
2020-01-12 00:04:42 +00:00
|
|
|
ContactList:
|
|
|
|
description: |
|
|
|
|
A list of contacts.
|
|
|
|
required:
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Contact"
|
2019-07-22 22:53:30 +00:00
|
|
|
Contact:
|
|
|
|
description: |
|
|
|
|
Contact information.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- value
|
|
|
|
- kind
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
kind:
|
|
|
|
type: string
|
|
|
|
format: contactkind
|
|
|
|
enum:
|
|
|
|
- phone
|
|
|
|
- mobile
|
|
|
|
- website
|
|
|
|
- fax
|
|
|
|
- docspell
|
|
|
|
- email
|
|
|
|
ItemLightList:
|
|
|
|
description: |
|
|
|
|
A list of item details.
|
|
|
|
required:
|
|
|
|
- groups
|
|
|
|
properties:
|
|
|
|
groups:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/ItemLightGroup"
|
|
|
|
ItemLightGroup:
|
|
|
|
description: |
|
|
|
|
A group of items.
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/ItemLight"
|
|
|
|
ItemLight:
|
|
|
|
description: |
|
|
|
|
An item with only a few important properties.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- state
|
|
|
|
- date
|
|
|
|
- source
|
2020-06-07 13:18:28 +00:00
|
|
|
- tags
|
2021-07-14 20:32:17 +00:00
|
|
|
- attachments
|
2019-07-22 22:53:30 +00:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
format: itemstate
|
|
|
|
date:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
dueDate:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
source:
|
|
|
|
type: string
|
|
|
|
direction:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- incoming
|
|
|
|
- outgoing
|
|
|
|
corrOrg:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
corrPerson:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
|
|
|
concPerson:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
2020-11-14 10:37:50 +00:00
|
|
|
concEquipment:
|
2019-07-22 22:53:30 +00:00
|
|
|
$ref: "#/components/schemas/IdName"
|
2020-07-11 14:52:13 +00:00
|
|
|
folder:
|
|
|
|
$ref: "#/components/schemas/IdName"
|
2020-11-09 13:24:28 +00:00
|
|
|
attachments:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/AttachmentLight"
|
2020-06-07 13:18:28 +00:00
|
|
|
tags:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Tag"
|
2020-11-23 09:23:25 +00:00
|
|
|
customfields:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/ItemFieldValue"
|
2020-08-04 20:45:35 +00:00
|
|
|
notes:
|
|
|
|
description: |
|
|
|
|
Some prefix of the item notes.
|
|
|
|
type: string
|
2020-06-22 20:54:39 +00:00
|
|
|
highlighting:
|
|
|
|
description: |
|
|
|
|
Optional contextual information of a search query. Each
|
|
|
|
item refers to some field where a search match was found
|
|
|
|
(e.g. the name of an attachment or the item notes) and a
|
|
|
|
list of lines giving surrounding context of the macth.
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/HighlightEntry"
|
2020-11-09 13:24:28 +00:00
|
|
|
AttachmentLight:
|
|
|
|
description: |
|
|
|
|
Some little details about an attachment.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- position
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
position:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
pageCount:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2020-06-22 20:54:39 +00:00
|
|
|
HighlightEntry:
|
|
|
|
description: |
|
|
|
|
Highlighting information for a single field (maybe attachment
|
|
|
|
name or item notes).
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- lines
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
lines:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
2019-07-22 22:53:30 +00:00
|
|
|
IdName:
|
|
|
|
description: |
|
|
|
|
The identifier and a human readable name of some entity.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
BasicResult:
|
|
|
|
description: |
|
|
|
|
Some basic result of an operation.
|
|
|
|
required:
|
|
|
|
- success
|
|
|
|
- message
|
|
|
|
properties:
|
|
|
|
success:
|
|
|
|
type: boolean
|
|
|
|
message:
|
|
|
|
type: string
|
2020-07-07 22:21:48 +00:00
|
|
|
IdResult:
|
|
|
|
description: |
|
2021-10-02 13:16:02 +00:00
|
|
|
Some basic result of an operation with an ID as payload, if
|
|
|
|
success is true. If success is `false` the id is not usable.
|
2020-07-07 22:21:48 +00:00
|
|
|
required:
|
|
|
|
- success
|
|
|
|
- message
|
|
|
|
- id
|
|
|
|
properties:
|
|
|
|
success:
|
|
|
|
type: boolean
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
2019-07-22 22:53:30 +00:00
|
|
|
Tag:
|
|
|
|
description: |
|
|
|
|
A tag used to annotate items. A tag may have a category which
|
|
|
|
groups tags together.
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- created
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
format: ident
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
category:
|
|
|
|
type: string
|
|
|
|
created:
|
|
|
|
type: integer
|
|
|
|
format: date-time
|
|
|
|
TagList:
|
|
|
|
description: |
|
|
|
|
A list of tags.
|
|
|
|
required:
|
|
|
|
- count
|
|
|
|
- items
|
|
|
|
properties:
|
|
|
|
count:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/Tag'
|
2019-07-17 20:03:10 +00:00
|
|
|
UserPass:
|
|
|
|
description: |
|
|
|
|
Account name and password.
|
|
|
|
required:
|
|
|
|
- account
|
|
|
|
- password
|
|
|
|
properties:
|
|
|
|
account:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
2020-12-03 18:45:06 +00:00
|
|
|
rememberMe:
|
|
|
|
type: boolean
|
2019-07-17 20:03:10 +00:00
|
|
|
AuthResult:
|
|
|
|
description: |
|
|
|
|
The response to a authentication request.
|
|
|
|
required:
|
|
|
|
- collective
|
|
|
|
- user
|
2021-08-30 14:15:13 +00:00
|
|
|
- requireSecondFactor
|
2019-07-17 20:03:10 +00:00
|
|
|
- success
|
|
|
|
- message
|
|
|
|
- validMs
|
|
|
|
properties:
|
|
|
|
collective:
|
|
|
|
type: string
|
|
|
|
user:
|
|
|
|
type: string
|
|
|
|
success:
|
|
|
|
type: boolean
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
token:
|
|
|
|
description: |
|
|
|
|
The authentication token that should be used for
|
|
|
|
subsequent requests to secured endpoints.
|
|
|
|
type: string
|
|
|
|
validMs:
|
|
|
|
description: |
|
|
|
|
How long the token is valid in ms.
|
|
|
|
type: integer
|
|
|
|
format: int64
|
2021-08-30 14:15:13 +00:00
|
|
|
requireSecondFactor:
|
|
|
|
type: boolean
|
2019-07-17 20:03:10 +00:00
|
|
|
VersionInfo:
|
|
|
|
description: |
|
|
|
|
Information about the software.
|
|
|
|
required:
|
|
|
|
- version
|
|
|
|
- builtAtMillis
|
|
|
|
- builtAtString
|
|
|
|
- gitCommit
|
|
|
|
- gitVersion
|
|
|
|
properties:
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
builtAtMillis:
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
builtAtString:
|
|
|
|
type: string
|
|
|
|
gitCommit:
|
|
|
|
type: string
|
|
|
|
gitVersion:
|
|
|
|
type: string
|
|
|
|
securitySchemes:
|
|
|
|
authTokenHeader:
|
|
|
|
type: apiKey
|
|
|
|
in: header
|
|
|
|
name: X-Docspell-Auth
|
2021-01-04 15:32:54 +00:00
|
|
|
adminHeader:
|
|
|
|
type: apiKey
|
|
|
|
in: header
|
|
|
|
name: Docspell-Admin-Secret
|
2019-07-22 22:53:30 +00:00
|
|
|
parameters:
|
|
|
|
id:
|
|
|
|
name: id
|
|
|
|
in: path
|
2020-01-04 23:12:23 +00:00
|
|
|
description: An identifier
|
2019-07-22 22:53:30 +00:00
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-07-02 21:11:42 +00:00
|
|
|
userId:
|
|
|
|
name: userId
|
|
|
|
in: path
|
|
|
|
description: An identifier
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-10-02 13:16:02 +00:00
|
|
|
shareId:
|
|
|
|
name: shareId
|
|
|
|
in: path
|
|
|
|
description: An identifier for a share
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-09-06 22:18:02 +00:00
|
|
|
username:
|
|
|
|
name: username
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The username of a user of this collective
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-05-23 17:42:36 +00:00
|
|
|
itemId:
|
|
|
|
name: itemId
|
|
|
|
in: path
|
|
|
|
description: An identifier for an item
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2019-07-22 22:53:30 +00:00
|
|
|
full:
|
|
|
|
name: full
|
|
|
|
in: query
|
|
|
|
description: Whether to list full data or just name and id.
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2020-07-09 21:23:02 +00:00
|
|
|
owning:
|
|
|
|
name: full
|
|
|
|
in: query
|
2020-07-11 09:38:57 +00:00
|
|
|
description: Whether to get owning folders
|
2020-07-09 21:23:02 +00:00
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2019-12-31 22:17:07 +00:00
|
|
|
checksum:
|
|
|
|
name: checksum
|
|
|
|
in: path
|
|
|
|
description: A SHA-256 checksum
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-01-02 18:59:46 +00:00
|
|
|
q:
|
|
|
|
name: q
|
|
|
|
in: query
|
|
|
|
description: A query string.
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-03-01 11:37:25 +00:00
|
|
|
limit:
|
|
|
|
name: limit
|
|
|
|
in: query
|
|
|
|
description: A limit for a search query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
offset:
|
|
|
|
name: offset
|
|
|
|
in: query
|
|
|
|
description: A offset into the results for a search query
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
format: int32
|
2021-08-24 19:35:57 +00:00
|
|
|
sort:
|
|
|
|
name: sort
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: |
|
|
|
|
How to sort the returned list
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-03-01 11:37:25 +00:00
|
|
|
withDetails:
|
|
|
|
name: withDetails
|
|
|
|
in: query
|
|
|
|
description: Whether to return details to each item.
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2021-08-14 13:08:29 +00:00
|
|
|
searchMode:
|
|
|
|
name: searchMode
|
2021-08-14 12:53:05 +00:00
|
|
|
in: query
|
|
|
|
schema:
|
2021-08-14 13:08:29 +00:00
|
|
|
type: string
|
|
|
|
format: searchmode
|
2021-08-21 13:08:46 +00:00
|
|
|
description: |
|
|
|
|
Specify whether the search query should apply to soft-deleted
|
|
|
|
items or not.
|
2020-01-04 23:12:23 +00:00
|
|
|
name:
|
|
|
|
name: name
|
|
|
|
in: path
|
|
|
|
description: An e-mail connection name
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-01-10 22:41:03 +00:00
|
|
|
mailId:
|
|
|
|
name: mailId
|
|
|
|
in: path
|
|
|
|
description: The id of a sent mail.
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-01-12 00:04:42 +00:00
|
|
|
contactKind:
|
|
|
|
name: kind
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: |
|
|
|
|
One of the available contact kinds.
|
|
|
|
schema:
|
|
|
|
type: string
|
2020-11-08 09:03:47 +00:00
|
|
|
withFallback:
|
|
|
|
name: withFallback
|
|
|
|
in: query
|
|
|
|
description: Whether to provide a fallback or not.
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2021-05-24 22:06:13 +00:00
|
|
|
clientId:
|
|
|
|
name: clientId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: |
|
|
|
|
some identifier for a client application
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-09-06 09:41:40 +00:00
|
|
|
providerId:
|
|
|
|
name: providerId
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: ident
|