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