The task board's REST surface. Every response schema here is published as JSON Schema and checked at runtime by the frontend.
Deletes every task and every file of the caller, and the account itself. It cannot be undone. An account signed in with Apple is deleted only with Apple's confirmation, and its authorization at Apple is revoked once the deletion counts as done; a revocation that fails does not stop the deletion. The app confirms with Apple's sheet and sends the code it issues; the website is sent to Apple's sign-in, and its callback deletes the account.
Only for an account signed in with Apple: Apple's confirmation, so that TaskFest's authorization is revoked at Apple before the account is deleted (#635). Any other sends no body.
| appleAuthorizationCode | string <= 4096 characters The authorization code Apple's sign-in sheet issued to the app when the person signed in with Apple once more, to confirm. The backend exchanges it for Apple's tokens and revokes them at once; it keeps nothing. |
{- "appleAuthorizationCode": "string"
}{- "appleSignInUrl": "string"
}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 ^[Hh][Tt][Tt][Pp][Ss]?://[^\s/?#:]+(:[0-9]{1,... |
| 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"
}Trades the ID token the app signed in with, sent as Authorization: Bearer, once for a TaskFest app session token, which the app sends instead from then on. The ID token is checked exactly as on any bearer request. The session ends 30 days after it starts however much it is used, when the app ends it, or with the account. An app session token or a session cookie cannot start another.
{- "token": "taskfest_app_q8Jx2mJ0bZ8tQ1n4Yc7d5v3s6K9wF2hL0aR1uE4oP7i",
- "expiresAt": "2026-12-16T09:30:00Z"
}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",
}
]
}Registers the phone the app runs on for push notifications (#277), or updates its push token or language: one installation of the app, named by the id it generated once and keeps. The device belongs to the app session sent as Authorization: Bearer and lasts as long as that session: signing out, the session's end after its 30 days and deleting the account each remove it. A session has one device, so registering another installation id with it removes the one before; registering the same installation id from a new session, after signing in again on the same phone, moves the device to that session.
| installationId required | string <= 36 characters ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]... Examples: 3f2b8c1e-9a4d-4e7f-8b6a-2c5d1e0f9a7b The installation's id: a UUID the app generated once, in lower case with its hyphens. |
| platform required | string Enum: "IOS" "ANDROID" Which push service reaches the device: Apple's (APNs) for |
| token required | string <= 4096 characters ^[A-Za-z0-9:_-]+$ The device's push token: the APNs device token in hex, or the FCM registration token, of one character at least. A new one replaces the one registered before. |
| language required | string Enum: "de" "en" The language the device's push notifications are written in: the app's own. |
{- "platform": "IOS",
- "token": "9f2c4a7e1b3d5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8",
- "language": "de"
}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, except a due time and zone the request leaves out both of (#497).
| 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. Left out together with the other of dueTime and timeZone, the task keeps both (#497), for apps that know neither. Left out alone, it counts as null, so a timeZone sent without a dueTime is refused. |
| 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. Left out together with the other of dueTime and timeZone, the task keeps both (#497), for apps that know neither. Left out alone, it counts as null, so a timeZone sent without a dueTime is refused. |
| 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"
}