Agents
Finalize an Agent workspace upload
Finalize an Agent workspace upload. The request enforces Agent roles, ownership, workspace boundaries, and lifecycle state.
PUT
/
api
/
v1
/
agents
/
{agentId}
/
storage
/
uploads
/
{storageUploadSessionId}
/
finalize
Finalize an Agent workspace upload
curl --request PUT \
--url https://api.revoengine.com/api/v1/agents/{agentId}/storage/uploads/{storageUploadSessionId}/finalize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedPartCount": 24,
"expectedPartNumbers": [
1,
2,
4
],
"metadata": {
"scope": "integration",
"finalized": true
},
"computeStats": "none"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expectedPartCount: 24,
expectedPartNumbers: [1, 2, 4],
metadata: {scope: 'integration', finalized: true},
computeStats: 'none'
})
};
fetch('https://api.revoengine.com/api/v1/agents/{agentId}/storage/uploads/{storageUploadSessionId}/finalize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}/storage/uploads/{storageUploadSessionId}/finalize"
payload = {
"expectedPartCount": 24,
"expectedPartNumbers": [1, 2, 4],
"metadata": {
"scope": "integration",
"finalized": True
},
"computeStats": "none"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
200
⌘I
Finalize an Agent workspace upload
curl --request PUT \
--url https://api.revoengine.com/api/v1/agents/{agentId}/storage/uploads/{storageUploadSessionId}/finalize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedPartCount": 24,
"expectedPartNumbers": [
1,
2,
4
],
"metadata": {
"scope": "integration",
"finalized": true
},
"computeStats": "none"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expectedPartCount: 24,
expectedPartNumbers: [1, 2, 4],
metadata: {scope: 'integration', finalized: true},
computeStats: 'none'
})
};
fetch('https://api.revoengine.com/api/v1/agents/{agentId}/storage/uploads/{storageUploadSessionId}/finalize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/agents/{agentId}/storage/uploads/{storageUploadSessionId}/finalize"
payload = {
"expectedPartCount": 24,
"expectedPartNumbers": [1, 2, 4],
"metadata": {
"scope": "integration",
"finalized": True
},
"computeStats": "none"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)
