Attachments
3 operations, generated from the OpenAPI document.
Announce a file for an attachment field and get a presigned PUT for it
POST /api/tables/{tableId}/attachments
Access: attachment:create on the table (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Request body
fieldIdstring (uuid)viewIdstring (uuid)filenamestring requiredtypestring | ""sizeinteger required
Responses
201Successattachmentobject requiredidstring requiredfilenamestring requiredsizeinteger requiredtypestring requiredwidthintegerheightinteger
uploadobject requiredmethod"PUT" requiredurlstring (uri) requiredheadersobject requiredexpiresAtstring (date-time) required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Confirm an upload: the stored object must match the announced size
POST /api/tables/{tableId}/attachments/{attachmentId}/confirm
Access: attachment:create on the table (see ACTIONS for the minimum role); personal access tokens need data.records:write.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
attachmentId | path | string (uuid) | yes |
Responses
200Successidstring requiredfilenamestring requiredsizeinteger requiredtypestring requiredwidthintegerheightinteger
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
The workspace's stored files and bytes
GET /api/workspaces/{workspaceId}/storage
Access: workspace:read on the workspace (see ACTIONS for the minimum role); personal access tokens need schema.bases:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
workspaceId | path | string | yes |
Responses
200SuccessworkspaceIdstring (uuid) requiredfilesinteger requiredbytesinteger required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)