Storage
Put an object in one request.
Put an object in one request. The request enforces Storage access, workspace ownership, and entry lifecycle state.
POST
/
api
/
v1
/
storage
/
objects
Put an object in one request.
curl --request POST \
--url https://api.revoengine.com/api/v1/storage/objects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "logo.png",
"data": "iVBORw0KGgoAAAANSUhEUgAAAAUA"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'logo.png', data: 'iVBORw0KGgoAAAANSUhEUgAAAAUA'})
};
fetch('https://api.revoengine.com/api/v1/storage/objects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/storage/objects"
payload = {
"name": "logo.png",
"data": "iVBORw0KGgoAAAANSUhEUgAAAAUA"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Logical storage lifecycle tier. Select only when creating a new file or upload session; existing files keep their tier. HOT: Active files used in live workflows, previews, and frequent downloads. WARM: Completed or less-active business files that are still occasionally accessed. COLD: Compliance snapshots, historic imports, and retained evidence that is rarely opened. FROZEN: Deep archive or legal-hold data kept mainly for audit or recovery obligations.
Available options:
HOT, WARM, COLD, FROZEN Example:
"HOT"
Response
200
OK.
⌘I
Put an object in one request.
curl --request POST \
--url https://api.revoengine.com/api/v1/storage/objects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "logo.png",
"data": "iVBORw0KGgoAAAANSUhEUgAAAAUA"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'logo.png', data: 'iVBORw0KGgoAAAANSUhEUgAAAAUA'})
};
fetch('https://api.revoengine.com/api/v1/storage/objects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/storage/objects"
payload = {
"name": "logo.png",
"data": "iVBORw0KGgoAAAANSUhEUgAAAAUA"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
