The task board's REST surface. Every response schema here is published as JSON Schema and checked at runtime by the frontend.
Checks the type and the limits, and answers with a link that accepts exactly this file: PUT it there with the given headers, then confirm.
| taskId required | integer <int64> |
| fileName required | string <= 1024 characters \S |
| contentType required | string <= 255 characters |
| sizeBytes required | integer <int64> >= 1 |
| thumbnailSizeBytes | integer or null <int64> |
{- "fileName": "Rechnung.pdf",
- "contentType": "application/pdf",
- "sizeBytes": 48213,
- "thumbnailSizeBytes": 6120
}{- "attachment": {
- "id": 7,
- "fileName": "Rechnung.pdf",
- "contentType": "application/pdf",
- "sizeBytes": 48213,
- "thumbnail": false,
}, - "url": "string",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "expiresAt": "2022-03-10T16:15:50Z",
- "thumbnailUpload": {
- "url": "string",
- "headers": {
- "property1": "string",
- "property2": "string"
}
}
}A web address, with the page's title where the sharing app gave one (#414). Counted against the same limits as files; available at once, with nothing to upload.
| taskId required | integer <int64> |
| url required | string <= 2048 characters ^(?i)https?://[^\s/?#:]+(:[0-9]{1,5})?([/?#][... |
| title | string or null <= 1024 characters |
{- "title": "An article worth reading"
}{- "id": 7,
- "fileName": "Rechnung.pdf",
- "contentType": "application/pdf",
- "sizeBytes": 48213,
- "thumbnail": false,
}Checks the file arrived as announced and makes the attachment available.
| id required | integer <int64> |
| taskId required | integer <int64> |
{- "id": 7,
- "fileName": "Rechnung.pdf",
- "contentType": "application/pdf",
- "sizeBytes": 48213,
- "thumbnail": false,
}For the owner's browser to fetch the file straight from storage. The same link is handed out again while it is fresh, and the answer may be kept for as long as that, so the browser's cache keeps the file.
| id required | integer <int64> |
| taskId required | integer <int64> |
{- "url": "string",
- "expiresAt": "2022-03-10T16:15:50Z"
}Like the file's link, for the small preview an image's row shows (#236).
| id required | integer <int64> |
| taskId required | integer <int64> |
{- "url": "string",
- "expiresAt": "2022-03-10T16:15:50Z"
}Every provider this deployment declares, usable or not, needing no authentication to ask.
{- "enabled": true,
- "providers": [
- {
- "id": "google",
- "label": "Google",
- "available": true,
- "loginUrl": "/api/auth/login",
}
]
}The caller becomes the owner; the id cannot be set.
| description required | string <= 255 characters \S |
| dueDate required | string <date> (LocalDate) |
| dueTime | string or null^([01][0-9]|2[0-3]):[0-5][0-9]$ The time of day it is due at, to the minute (#474); none, or null, for a task due all day. Floating without a timeZone. |
| timeZone | string or null <= 64 characters The IANA zone dueTime is meant in (#474), one the backend knows; only with a dueTime. None, or null, for a floating time, which follows the reader's clock. |
| importance required | string (TaskImportance) Enum: "LOW" "MEDIUM" "HIGH" |
| state required | string (TaskState) Enum: "TODO" "WORKING" "DONE" |
| attachmentIds | Array of integers or null <int64> <= 10 items [ items <int64 > ] Attachments of a task deleted moments ago, for an undo to bring back (#204); only the caller's, only within the undo window. |
{- "description": "Renew the passport",
- "dueDate": "2019-08-24",
- "dueTime": "10:00",
- "timeZone": "Europe/Berlin",
- "importance": "LOW",
- "state": "TODO",
- "attachmentIds": [
- 0
]
}{- "id": 42,
- "description": "Renew the passport",
- "dueDate": "2026-11-30",
- "importance": "HIGH",
- "state": "TODO"
}Makes the draft a task, with its files, validated as a create is. Adding it again, as a retry whose answer was lost does, applies the values to the task (#427).
| id required | integer <int64> |
| description required | string <= 255 characters \S |
| dueDate required | string <date> (LocalDate) |
| dueTime | string or null^([01][0-9]|2[0-3]):[0-5][0-9]$ The time of day it is due at, to the minute (#474); none, or null, for a task due all day. Floating without a timeZone. |
| timeZone | string or null <= 64 characters The IANA zone dueTime is meant in (#474), one the backend knows; only with a dueTime. None, or null, for a floating time, which follows the reader's clock. |
| importance required | string (TaskImportance) Enum: "LOW" "MEDIUM" "HIGH" |
| state required | string (TaskState) Enum: "TODO" "WORKING" "DONE" |
| attachmentIds | Array of integers or null <int64> <= 10 items [ items <int64 > ] Attachments of a task deleted moments ago, for an undo to bring back (#204); only the caller's, only within the undo window. |
{- "description": "Renew the passport",
- "dueDate": "2019-08-24",
- "dueTime": "10:00",
- "timeZone": "Europe/Berlin",
- "importance": "LOW",
- "state": "TODO",
- "attachmentIds": [
- 0
]
}{- "id": 42,
- "description": "Renew the passport",
- "dueDate": "2019-08-24",
- "dueTime": "10:00",
- "timeZone": "Europe/Berlin",
- "dueAt": "2026-11-30T09:00:00Z",
- "importance": "LOW",
- "state": "TODO",
- "attachments": [
- {
- "id": 7,
- "fileName": "Rechnung.pdf",
- "contentType": "application/pdf",
- "sizeBytes": 48213,
- "thumbnail": false,
}
]
}Replaces every field of a task owned by the caller.
| id required | integer <int64> |
| description required | string <= 255 characters \S |
| dueDate required | string <date> (LocalDate) |
| dueTime | string or null^([01][0-9]|2[0-3]):[0-5][0-9]$ The time of day it is due at, to the minute (#474); none, or null, for a task due all day. Floating without a timeZone. |
| timeZone | string or null <= 64 characters The IANA zone dueTime is meant in (#474), one the backend knows; only with a dueTime. None, or null, for a floating time, which follows the reader's clock. |
| importance required | string (TaskImportance) Enum: "LOW" "MEDIUM" "HIGH" |
| state required | string (TaskState) Enum: "TODO" "WORKING" "DONE" |
{- "description": "Renew the passport",
- "dueDate": "2019-08-24",
- "dueTime": "10:00",
- "timeZone": "Europe/Berlin",
- "importance": "LOW",
- "state": "TODO"
}{- "id": 42,
- "description": "Renew the passport",
- "dueDate": "2026-11-30",
- "importance": "HIGH",
- "state": "TODO"
}