Skip to main content
Create Custom Preset
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"
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

Request to create a new custom preset

preset
Preset · object

Set of preconfigured templates for notification content rendering

Response

200 - application/json

Response containing the created custom preset

preset
Preset · object

Set of preconfigured templates for notification content rendering