Update a preference.
USER: true SERVICE ACCOUNT: true
curl --request PUT \
--url https://api.revoengine.com/api/v1/preferences/{preferenceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": 3
}'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 3})
};
fetch('https://api.revoengine.com/api/v1/preferences/{preferenceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/preferences/{preferenceId}"
payload = { "version": 3 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
Optimistic locking version for the preference row.
3
Updated preference name.
"orders-grid-default"
Updated preference description.
"Shared grid for support triage."
Updated reference type for GRID preferences.
"orders"
Updated reference id for GRID preferences.
"support-dashboard"
Replacement resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.
{ "layout": "support" }
Updated shared visibility flag.
false
Updated default-selection flag.
true
Updated auto-fit flag applied when the preference is activated.
true
Updated preference payload items, validated using the persisted preference family. OBSERVABILITY uses the same saved-view payload as create. Omit data when changing only name, description, visibility or default.
[
{
"field": "status",
"width": 180,
"order": 0
}
]
Response
OK.
curl --request PUT \
--url https://api.revoengine.com/api/v1/preferences/{preferenceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": 3
}'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 3})
};
fetch('https://api.revoengine.com/api/v1/preferences/{preferenceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/preferences/{preferenceId}"
payload = { "version": 3 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)
