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