Upload a file to storage and create an attachment row.
Enforces per-task limit. S.10: the file passes upload_guard first (type from its bytes, size cap, name cleaned);
a refusal is a 413 / 415 / 422 problem and an upload.rejected event on the task.
B.3: when the account has used its free storage (shared by all its organizations) and no card keeps it going, the
answer is 402 storage-limit-reached.
Upload limits: up to 100 MB (100,000,000 bytes). Allowed: csv, docx, gif, heic, jpg, json, log, m4a, md, mov, mp3, mp4, ods, odt, pdf, png, pptx, txt, wav, webm, webp, xlsx, zip. The type is read from the file’s bytes, and the extension must match it. Executables, scripts, HTML, SVG, XML and macro-enabled Office files are refused. Refusals: 413 upload-too-large, 415 upload-type-not-allowed / upload-type-mismatch, 422 upload-rejected (the malware scan).
Bad request - a query parameter outside what the operation accepts (invalid-parameter)
Media typeapplication/problem+json
Problem
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
Conflict (a duplicate, or an Idempotency-Key still in flight)
Media typeapplication/problem+json
Problem
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
object
enrolled
boolean
required_for
string
Allowed values: alladmins
reason
string
Allowed values: org_policystep_up
Example
{
"type": "about:blank",
"title": "Conflict (a duplicate, or an `Idempotency-Key` still in flight)",
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
object
enrolled
boolean
required_for
string
Allowed values: alladmins
reason
string
Allowed values: org_policystep_up
Example
{
"type": "about:blank",
"title": "`If-Match` does not match the current `ETag`",
The file is over the size limit (upload-too-large)
Media typeapplication/problem+json
Problem
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
object
enrolled
boolean
required_for
string
Allowed values: alladmins
reason
string
Allowed values: org_policystep_up
Example
{
"type": "about:blank",
"title": "The file is over the size limit (`upload-too-large`)",
The file type is not allowed (upload-type-not-allowed), or its contents do not match its name (upload-type-mismatch)
Media typeapplication/problem+json
Problem
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
object
enrolled
boolean
required_for
string
Allowed values: alladmins
reason
string
Allowed values: org_policystep_up
Example
{
"type": "about:blank",
"title": "The file type is not allowed (`upload-type-not-allowed`), or its contents do not match its name (`upload-type-mismatch`)",
The body or query did not validate (validation), or an Idempotency-Key was reused; or the malware scan refused the file (upload-rejected)
Media typeapplication/problem+json
Problem
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
object
enrolled
boolean
required_for
string
Allowed values: alladmins
reason
string
Allowed values: org_policystep_up
Example
{
"type": "about:blank",
"title": "The body or query did not validate (`validation`), or an `Idempotency-Key` was reused; or the malware scan refused the file (`upload-rejected`)",
An access token, or a signed-in user, or an address over its limit (rate-limit; see Retry-After)
Media typeapplication/problem+json
Problem
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
object
enrolled
boolean
required_for
string
Allowed values: alladmins
reason
string
Allowed values: org_policystep_up
Example
{
"type": "about:blank",
"title": "An access token, or a signed-in user, or an address over its limit (`rate-limit`; see `Retry-After`)",
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
The malware scan could not run (upload-rejected); retry later
Media typeapplication/problem+json
Problem
An RFC 9457 problem details object - the body of every error response. detail is the human-readable explanation; request_id identifies the request for support.
object
type
required
about:blank or a urn:taskadence:problem:* identifier
Human-readable explanation (a string; for a 422, the list of validation errors)
instance
required
string
request_id
required
string
errors
Structured failures: validation errors, or {loc, msg, allowed} for a bad parameter
Array<object>
object
mfa
On an mfa-required problem only: enrolled (does the person have an authenticator app set up), required_for (all or admins) and reason (org_policy: the organization’s requirement; step_up: this action needs a second step)
object
enrolled
boolean
required_for
string
Allowed values: alladmins
reason
string
Allowed values: org_policystep_up
Example
{
"type": "about:blank",
"title": "The malware scan could not run (`upload-rejected`); retry later",