Config
Set an instance cache value.
Roles: INSTANCE_ADMIN
User access: Yes.
Service account access: Yes.
POST
/
api
/
v1
/
config
/
cache
/
create
Set an instance cache value.
curl --request POST \
--url https://api.revoengine.com/api/v1/config/cache/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "instance:feature:flags",
"value": {
"enabled": true,
"source": "admin"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: 'instance:feature:flags', value: {enabled: true, source: 'admin'}})
};
fetch('https://api.revoengine.com/api/v1/config/cache/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/config/cache/create"
payload = {
"key": "instance:feature:flags",
"value": {
"enabled": True,
"source": "admin"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
OK.
⌘I
Set an instance cache value.
curl --request POST \
--url https://api.revoengine.com/api/v1/config/cache/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "instance:feature:flags",
"value": {
"enabled": true,
"source": "admin"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: 'instance:feature:flags', value: {enabled: true, source: 'admin'}})
};
fetch('https://api.revoengine.com/api/v1/config/cache/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/config/cache/create"
payload = {
"key": "instance:feature:flags",
"value": {
"enabled": True,
"source": "admin"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
