Preferences
Create a preference.
USER: true SERVICE ACCOUNT: true
POST
/
api
/
v1
/
preferences
Create a preference.
curl --request POST \
--url https://api.revoengine.com/api/v1/preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "orders-grid-default",
"type": "GRID",
"data": [
{
"field": "status",
"width": 180,
"order": 0
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'orders-grid-default',
type: 'GRID',
data: [{field: 'status', width: 180, order: 0}]
})
};
fetch('https://api.revoengine.com/api/v1/preferences', 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"
payload = {
"name": "orders-grid-default",
"type": "GRID",
"data": [
{
"field": "status",
"width": 180,
"order": 0
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Preference payload items validated against the selected preference type. OBSERVABILITY accepts exactly one saved view with schemaVersion: 1, reusable state (tab, timeframe, search, services, kind, outcome, resourceId, actorId, severity, event, anchorType, logFilter) and filtersOpen. Selected execution and investigation identifiers are excluded; the payload is limited to 64 KiB.
Example:
[
{
"field": "status",
"width": 180,
"order": 0
}
]
Response
OK.
Last modified on September 5, 2026
⌘I
Create a preference.
curl --request POST \
--url https://api.revoengine.com/api/v1/preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "orders-grid-default",
"type": "GRID",
"data": [
{
"field": "status",
"width": 180,
"order": 0
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'orders-grid-default',
type: 'GRID',
data: [{field: 'status', width: 180, order: 0}]
})
};
fetch('https://api.revoengine.com/api/v1/preferences', 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"
payload = {
"name": "orders-grid-default",
"type": "GRID",
"data": [
{
"field": "status",
"width": 180,
"order": 0
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
