Case Management

Create a notification rule

Create a notification rule for a project.

post/api/v2/cases/projects/{project_id}/notification_rules

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/cases/projects/{project_id}/notification_rules
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: cases_write

Path parameters

project_idstring required

Project UUID

Request body

Example request

{
  "data": {
    "attributes": {
      "recipients": [
        {
          "type": "EMAIL"
        }
      ],
      "triggers": [
        {
          "type": "CASE_CREATED"
        }
      ]
    },
    "type": "notification_rule"
  }
}

Response

CREATED

Example response

{
  "data": {
    "attributes": {
      "recipients": [
        {
          "type": "EMAIL"
        }
      ],
      "triggers": [
        {
          "type": "CASE_CREATED"
        }
      ]
    },
    "id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
    "type": "notification_rule"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.