Upload
Create upload
Upload
Create upload
Upload a file. This is the only endpoint that uses multipart/form-data.
POST
/
api
/
v1
/
upload
curl --request POST \
--url https://api.bundle.social/api/v1/upload/ \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form 'teamId=<string>'
{
"id": "<string>",
"teamId": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"iconUrl": "<string>",
"thumbnailUrl": "<string>",
"url": "<string>",
"iconPath": "<string>",
"thumbnailPath": "<string>",
"path": "<string>",
"type": "image",
"width": 123,
"height": 123,
"fileSize": 123,
"videoLength": 123,
"mime": "<string>",
"ext": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Authorizations
Body
multipart/form-data
Body
The body is of type object
.
Response
200
application/json
200
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.bundle.social/api/v1/upload/ \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form 'teamId=<string>'
{
"id": "<string>",
"teamId": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"iconUrl": "<string>",
"thumbnailUrl": "<string>",
"url": "<string>",
"iconPath": "<string>",
"thumbnailPath": "<string>",
"path": "<string>",
"type": "image",
"width": 123,
"height": 123,
"fileSize": 123,
"videoLength": 123,
"mime": "<string>",
"ext": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}