Storage
Compress a file to a new gzip file in the same folder without replacing the source.
Compress a file to a new gzip file in the same folder without replacing the source. The request enforces Storage access, workspace ownership, and entry lifecycle state.
POST
/
api
/
v1
/
storage
/
entries
/
{storageEntryId}
/
compress
Compress a file to a new gzip file in the same folder without replacing the source.
curl --request POST \
--url https://api.revoengine.com/api/v1/storage/entries/{storageEntryId}/compress \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idempotencyKey": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({idempotencyKey: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/storage/entries/{storageEntryId}/compress', 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/entries/{storageEntryId}/compress"
payload = { "idempotencyKey": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
application/json
Stable retry key for compressing the current source version to a new gzip file in the same folder.
Maximum string length:
256Response
200
⌘I
Compress a file to a new gzip file in the same folder without replacing the source.
curl --request POST \
--url https://api.revoengine.com/api/v1/storage/entries/{storageEntryId}/compress \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"idempotencyKey": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({idempotencyKey: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/storage/entries/{storageEntryId}/compress', 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/entries/{storageEntryId}/compress"
payload = { "idempotencyKey": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
