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 |
{- "fileName": "Rechnung.pdf",
- "contentType": "application/pdf",
- "sizeBytes": 48213
}{- "attachment": {
- "id": 7,
- "fileName": "Rechnung.pdf",
- "contentType": "application/pdf",
- "sizeBytes": 48213
}, - "url": "string",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "expiresAt": "2022-03-10T16:15:50Z"
}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
}Works for a few minutes, for the owner's browser to fetch the file straight from storage.
| 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"
}