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"
}
}
}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) |
| 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",
- "importance": "LOW",
- "state": "TODO",
- "attachmentIds": [
- 0
]
}{- "id": 42,
- "description": "Renew the passport",
- "dueDate": "2026-11-30",
- "importance": "HIGH",
- "state": "TODO"
}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) |
| importance required | string (TaskImportance) Enum: "LOW" "MEDIUM" "HIGH" |
| state required | string (TaskState) Enum: "TODO" "WORKING" "DONE" |
{- "description": "Renew the passport",
- "dueDate": "2019-08-24",
- "importance": "LOW",
- "state": "TODO"
}{- "id": 42,
- "description": "Renew the passport",
- "dueDate": "2026-11-30",
- "importance": "HIGH",
- "state": "TODO"
}