Upload Files
curl --request POST \
--url https://api.example.com/api/v1/ppt/files/upload \
--header 'Content-Type: multipart/form-data' \
--form 'files=<string>'import requests
url = "https://api.example.com/api/v1/ppt/files/upload"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001--"
headers = {"Content-Type": "multipart/form-data"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('files', '<string>');
const options = {method: 'POST'};
options.body = form;
fetch('https://api.example.com/api/v1/ppt/files/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
"<string>"
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Open Source API v1
Upload Files
POST
/
api
/
v1
/
ppt
/
files
/
upload
Upload Files
curl --request POST \
--url https://api.example.com/api/v1/ppt/files/upload \
--header 'Content-Type: multipart/form-data' \
--form 'files=<string>'import requests
url = "https://api.example.com/api/v1/ppt/files/upload"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001--"
headers = {"Content-Type": "multipart/form-data"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('files', '<string>');
const options = {method: 'POST'};
options.body = form;
fetch('https://api.example.com/api/v1/ppt/files/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
"<string>"
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
multipart/form-data
Response
Successful Response
Was this page helpful?
⌘I