Skip to main content
POST
/
workspace
/
{workspace_id}
/
file
Upload files to workspace
curl --request POST \
  --url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form type=image \
  --form access=public \
  --form content=@example-file
{
  "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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
integer
required

Body

multipart/form-data
content
file
required
type
enum<string>
Available options:
image,
video,
audio
access
enum<string>
default:public
Available options:
public,
private

Response

Success!

id
integer
default:10095
created_at
string<timestamptz>
default:2023-04-19 21:01:32+0000
name
string
default:file_example_MP3_1MG.mp3
size
integer
default:1087849
type
string
default:audio
mime
string
default:audio/mpeg
access
string
default:public
path
string
default:/vault/Ramtdv50/3TA6XKsmLe-2BigGnwxSb0v00sI/qSWtbg../file_example_MP3_1MG.mp3
I