Upload files to workspace
Authentication: required
Required API Scope: Workspace File: Create
curl --request POST \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form content='@example-file' \
--form type=image \
--form access=public{
"id": 10095,
"created_at": "2023-04-19 21:01:32+0000",
"name": "file_example_MP3_1MG.mp3",
"size": 1087849,
"type": "audio",
"mime": "audio/mpeg",
"access": "public",
"path": "/vault/Ramtdv50/3TA6XKsmLe-2BigGnwxSb0v00sI/qSWtbg../file_example_MP3_1MG.mp3"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Success!
Was this page helpful?
curl --request POST \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form content='@example-file' \
--form type=image \
--form access=public{
"id": 10095,
"created_at": "2023-04-19 21:01:32+0000",
"name": "file_example_MP3_1MG.mp3",
"size": 1087849,
"type": "audio",
"mime": "audio/mpeg",
"access": "public",
"path": "/vault/Ramtdv50/3TA6XKsmLe-2BigGnwxSb0v00sI/qSWtbg../file_example_MP3_1MG.mp3"
}