Download File by Id
GET/api/workspaces/:workspace_id/files/:id/download/
Download a file by its id.
Request
Path Parameters
A unique integer value identifying this field file.
Query Parameters
UUID of the editor session. This field is only required when used from public endpoints.
Default value: true
Should the response be a redirect response to the file resource? This field is true
on default.
Responses
- 200
- 302
- 401
- 403
- 404
- application/json
- Schema
- Example (from schema)
Schema
Possible values: non-empty
Temporary download url (if 'redirect=false').
{
"temp_download_url": "string"
}
File stream redirection
No authentication found or authentication is not correct.
Specified path is not allowed
Permission evaluation:
((Is Authenticated Organization Admin OR Workspace Context Permission) OR Public Permission)
Descriptions:
Is Authenticated Organization Admin
: User must be an Organization Admin.
Public Permission
: Checks corresponding workspace is public.
Workspace Context Permission
: Workspace must be available to the User.
File is not found