Me
Rotate a personal API key.
Requires authenticator confirmation for human accounts. Service accounts use the common IAM management policy. Returns the successor secret once and safe predecessor metadata.
POST
/
api
/
v1
/
me
/
key
/
{key}
/
rotate
Rotate a personal API key.
curl --request POST \
--url https://api.revoengine.com/api/v1/me/key/{key}/rotate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": 1
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 1})
};
fetch('https://api.revoengine.com/api/v1/me/key/{key}/rotate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/me/key/{key}/rotate"
payload = { "version": 1 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
201
⌘I
Rotate a personal API key.
curl --request POST \
--url https://api.revoengine.com/api/v1/me/key/{key}/rotate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": 1
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 1})
};
fetch('https://api.revoengine.com/api/v1/me/key/{key}/rotate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/me/key/{key}/rotate"
payload = { "version": 1 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
