Storage
Edit literal UTF-8 text with metadata and content version fences.
Edit literal UTF-8 text with metadata and content version fences. The request enforces Storage access, workspace ownership, and entry lifecycle state.
POST
/
api
/
v1
/
storage
/
entries
/
{storageEntryId}
/
edit
Edit literal UTF-8 text with metadata and content version fences.
curl --request POST \
--url https://api.revoengine.com/api/v1/storage/entries/{storageEntryId}/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-revo-mutation-review: <x-revo-mutation-review>' \
--data '
{
"baseVersion": 1,
"replacements": [
{
"oldText": "<string>",
"newText": "<string>",
"expectedMatches": 2
}
],
"contentVersion": "<string>"
}
'const options = {
method: 'POST',
headers: {
'x-revo-mutation-review': '<x-revo-mutation-review>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
baseVersion: 1,
replacements: [{oldText: '<string>', newText: '<string>', expectedMatches: 2}],
contentVersion: '<string>'
})
};
fetch('https://api.revoengine.com/api/v1/storage/entries/{storageEntryId}/edit', 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}/edit"
payload = {
"baseVersion": 1,
"replacements": [
{
"oldText": "<string>",
"newText": "<string>",
"expectedMatches": 2
}
],
"contentVersion": "<string>"
}
headers = {
"x-revo-mutation-review": "<x-revo-mutation-review>",
"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-*).
Headers
Path Parameters
Body
application/json
Response
201
⌘I
Edit literal UTF-8 text with metadata and content version fences.
curl --request POST \
--url https://api.revoengine.com/api/v1/storage/entries/{storageEntryId}/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-revo-mutation-review: <x-revo-mutation-review>' \
--data '
{
"baseVersion": 1,
"replacements": [
{
"oldText": "<string>",
"newText": "<string>",
"expectedMatches": 2
}
],
"contentVersion": "<string>"
}
'const options = {
method: 'POST',
headers: {
'x-revo-mutation-review': '<x-revo-mutation-review>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
baseVersion: 1,
replacements: [{oldText: '<string>', newText: '<string>', expectedMatches: 2}],
contentVersion: '<string>'
})
};
fetch('https://api.revoengine.com/api/v1/storage/entries/{storageEntryId}/edit', 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}/edit"
payload = {
"baseVersion": 1,
"replacements": [
{
"oldText": "<string>",
"newText": "<string>",
"expectedMatches": 2
}
],
"contentVersion": "<string>"
}
headers = {
"x-revo-mutation-review": "<x-revo-mutation-review>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
