Start or continue a multipart upload
curl --request POST \
--url https://nemonist.com/api/v1/folders/{id}/multipart \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"bytes": 123,
"upload": "<string>"
}
'import requests
url = "https://nemonist.com/api/v1/folders/{id}/multipart"
payload = {
"path": "<string>",
"bytes": 123,
"upload": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', bytes: 123, upload: '<string>'})
};
fetch('https://nemonist.com/api/v1/folders/{id}/multipart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"upload": "<string>",
"path": "<string>",
"bytes": 123,
"partBytes": 123,
"parts": 123,
"done": [
123
],
"urls": {},
"more": true,
"how": "<string>"
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Folders
Start or continue a multipart upload
For a large file: send path and bytes to start, or upload (the token) to get URLs for the parts still to send.
POST
/
folders
/
{id}
/
multipart
Start or continue a multipart upload
curl --request POST \
--url https://nemonist.com/api/v1/folders/{id}/multipart \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"bytes": 123,
"upload": "<string>"
}
'import requests
url = "https://nemonist.com/api/v1/folders/{id}/multipart"
payload = {
"path": "<string>",
"bytes": 123,
"upload": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', bytes: 123, upload: '<string>'})
};
fetch('https://nemonist.com/api/v1/folders/{id}/multipart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"upload": "<string>",
"path": "<string>",
"bytes": 123,
"partBytes": 123,
"parts": 123,
"done": [
123
],
"urls": {},
"more": true,
"how": "<string>"
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Authorizations
Body
application/json
Response
The upload in progress.
A multipart upload in progress.