v1
protected
files
Upload File
Upload a file, server-proxied.
purpose="workspace" (the default) lands the file at path within the workspace, or at the workspace root under its own name when path is omitted. purpose="attachment" stages it under staging/{id}/{filename} — hidden from the workspace listing — and returns a ref the task-create endpoint resolves into the task workspace.
post/v1/workspaces/{workspace}/files
Path parameters
workspacestring required
Slug of the workspace the request acts in
Slug of the workspace the request acts in
Response
Successful Response
{"stackTrail":"paths:/v1/workspaces/{workspace}/files:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
Changed in 1 of the 45 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○