Create Custom Preset
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/4/notifications/notification-center/v1/presets/custom \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"preset": {
"attachmentConfig": {},
"configOverrides": [
{
"conditionType": {
"matchEntityTypeAndSubType": {
"entitySubType": "<string>"
}
},
"messageConfig": {
"fields": [
{
"fieldName": "title",
"template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
},
"payloadType": "<string>"
}
],
"createTime": "2023-11-07T05:31:56Z",
"description": "Custom preset for alerts",
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Preset",
"parentId": "preset_system_slack_alerts_basic",
"updateTime": "2023-11-07T05:31:56Z"
}
}
'{
"preset": {
"attachmentConfig": {},
"configOverrides": [
{
"conditionType": {
"matchEntityTypeAndSubType": {
"entitySubType": "<string>"
}
},
"messageConfig": {
"fields": [
{
"fieldName": "title",
"template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
},
"payloadType": "<string>"
}
],
"createTime": "2023-11-07T05:31:56Z",
"description": "Custom preset for alerts",
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Preset",
"parentId": "preset_system_slack_alerts_basic",
"updateTime": "2023-11-07T05:31:56Z"
}
}Presets Service
Create Custom Preset
No description available
Create Custom Preset
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/4/notifications/notification-center/v1/presets/custom \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"preset": {
"attachmentConfig": {},
"configOverrides": [
{
"conditionType": {
"matchEntityTypeAndSubType": {
"entitySubType": "<string>"
}
},
"messageConfig": {
"fields": [
{
"fieldName": "title",
"template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
},
"payloadType": "<string>"
}
],
"createTime": "2023-11-07T05:31:56Z",
"description": "Custom preset for alerts",
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Preset",
"parentId": "preset_system_slack_alerts_basic",
"updateTime": "2023-11-07T05:31:56Z"
}
}
'{
"preset": {
"attachmentConfig": {},
"configOverrides": [
{
"conditionType": {
"matchEntityTypeAndSubType": {
"entitySubType": "<string>"
}
},
"messageConfig": {
"fields": [
{
"fieldName": "title",
"template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
},
"payloadType": "<string>"
}
],
"createTime": "2023-11-07T05:31:56Z",
"description": "Custom preset for alerts",
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Preset",
"parentId": "preset_system_slack_alerts_basic",
"updateTime": "2023-11-07T05:31:56Z"
}
}Authorizations
API key authentication
Body
application/json
Request to create a new custom preset
Set of preconfigured templates for notification content rendering
Show child attributes
Show child attributes
Response
200 - application/json
Response containing the created custom preset
Set of preconfigured templates for notification content rendering
Show child attributes
Show child attributes
Was this page helpful?
⌘I