Upload a part
curl --request POST \
--url https://api.arg.ai/api/workspaces/{workspaceId}/files/upload/part \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/octet-stream' \
--data '"<string>"'import requests
url = "https://api.arg.ai/api/workspaces/{workspaceId}/files/upload/part"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/octet-stream"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/octet-stream'},
body: JSON.stringify('<string>')
};
fetch('https://api.arg.ai/api/workspaces/{workspaceId}/files/upload/part', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Files
Upload a part
Send one part’s raw bytes as the request body. Keep the returned etag - the complete call needs every part’s number and etag. Parts other than the last must meet the minimum part size.
POST
/
api
/
workspaces
/
{workspaceId}
/
files
/
upload
/
part
Upload a part
curl --request POST \
--url https://api.arg.ai/api/workspaces/{workspaceId}/files/upload/part \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/octet-stream' \
--data '"<string>"'import requests
url = "https://api.arg.ai/api/workspaces/{workspaceId}/files/upload/part"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/octet-stream"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/octet-stream'},
body: JSON.stringify('<string>')
};
fetch('https://api.arg.ai/api/workspaces/{workspaceId}/files/upload/part', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Authorizations
bearerAuthapiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Upload id from the initiate call.
Storage key from the initiate call.
Part number, starting at 1.
Body
application/octet-stream
Raw bytes of this part.
Response
Successful response
The response is of type object.