File column access
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/data/record_id/column/column_name/file
File access endpoint allows upload and download of binary file content.
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
db_branch_name | The DBBranchName matches the pattern `{db_name}:{branch_name}`. | path | ✅ | string |
table_name | The Table name | path | ✅ | string |
record_id | The Record name | path | ✅ | string |
column_name | The Column name | path | ✅ | string |
Download Content From a File Column
GEThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/data/record_id/column/column_name/file
Retrieves the file content from a file column
Responses
Upload Content to a File Column
PUThttps://{your-workspace-slug}.{region}.upload.xata.sh/db/db_branch_name/tables/table_name/data/record_id/column/column_name/file
Uploads the file content to the given file column
Request Body Type Definition
Responses
Remove the Content From a File Column
DELETEhttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/data/record_id/column/column_name/file
Deletes a file referred in a file column