Secrets
Update secret.
Roles: SECRET_WRITE, SECRET_ADMIN
User access: Yes.
Service account access: Yes.
PUT
/
api
/
v1
/
secrets
/
{secretId}
Update secret.
curl --request PUT \
--url https://api.revoengine.com/api/v1/secrets/{secretId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": 123
}'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 123})
};
fetch('https://api.revoengine.com/api/v1/secrets/{secretId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/secrets/{secretId}"
payload = { "version": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"secretId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": 123,
"metadata": {},
"restricted": true,
"users": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"groups": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"category": "<string>",
"desc": "<string>",
"accessUsers": [
{}
],
"accessGroups": [
{}
]
}Body
application/json
Response
OK.
Last modified on September 5, 2026
⌘I
Update secret.
curl --request PUT \
--url https://api.revoengine.com/api/v1/secrets/{secretId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": 123
}'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 123})
};
fetch('https://api.revoengine.com/api/v1/secrets/{secretId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/secrets/{secretId}"
payload = { "version": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"secretId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": 123,
"metadata": {},
"restricted": true,
"users": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"groups": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"category": "<string>",
"desc": "<string>",
"accessUsers": [
{}
],
"accessGroups": [
{}
]
}
