POST
/v1/filesUpload a file
Declare a workspace-loose file and get back its row plus a signed upload URL good for 15 minutes — the bytes go straight from the client to storage and never through this service. Needs a name and a non-negative sizeBytes; documentType, periodStart and periodEnd are optional and can be set afterwards with PATCH /v1/files/:id. Answers 503 when this deployment has no file storage configured, rather than a URL that would not work.
Access class: workspace.
Send request
Use the documented inputs to call this endpoint directly.
API serverbase URL
Bearer tokensessionoptional
Stored only in this browser for the session security scheme and reused on every API page in this group.
Request body
application/jsonrequiredbodyoptional
paramsobjectoptional
queryobjectoptional
Responses
201application/json
the action's answer
{}defaultapplication/json
a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}errorstringrequired