PUT
/
v1
/
alert_sources
/
{id}
curl --request PUT \
  --url https://api.rootly.com/v1/alert_sources/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "alert_sources",
    "attributes": {
      "name": "<string>",
      "source_type": "email",
      "alert_urgency_id": "<string>",
      "owner_group_ids": [
        "<string>"
      ],
      "alert_template_attributes": {
        "title": "<string>",
        "description": "<string>",
        "external_url": "<string>"
      },
      "alert_source_urgency_rules_attributes": [
        {
          "json_path": "<string>",
          "operator": "is",
          "value": "<string>"
        }
      ],
      "sourceable_attributes": {
        "auto_resolve": true,
        "resolve_state": "<string>",
        "accept_threaded_emails": true,
        "field_mappings_attributes": [
          {
            "field": "external_id",
            "json_path": "<string>"
          }
        ]
      },
      "resolution_rule_attributes": {
        "enabled": true,
        "condition_type": "all",
        "identifier_json_path": "<string>",
        "identifier_value_regex": "<string>",
        "conditions_attributes": [
          {
            "field": "<string>",
            "operator": "is",
            "value": "<string>"
          }
        ]
      }
    }
  }
}'
{
  "data": {
    "id": "a2e6df92-2b8c-406f-b19e-1d712862dc72",
    "type": "alert_sources",
    "attributes": {
      "name": "GW 2",
      "source_type": "datadog",
      "status": "setup_incomplete",
      "secret": "790a1e28dc7256a2e1192fad0837b61dad2e6ed63b08d309cd62a65895e8a662",
      "alert_urgency_id": "b46d92dc-7a97-419f-ab1c-f9c240991300",
      "created_at": "2025-04-18T09:44:41.632-07:00",
      "updated_at": "2025-04-18T09:44:46.896-07:00",
      "webhook_endpoint": "http://localhost:3001/webhooks/incoming/datadog_webhooks/notify/<TYPE>/<ID>",
      "owner_group_ids": [],
      "alert_source_urgency_rules_attributes": [
        {
          "id": "b7904430-1840-443c-a264-c3b7e5b8eb95",
          "json_path": "$.alert.status",
          "operator": "is",
          "value": "Critical",
          "alert_urgency_id": "1e59aab1-0fbe-4909-8306-c36d224c561a",
          "alerts_source_id": "a2e6df92-2b8c-406f-b19e-1d712862dc72",
          "created_at": "2025-04-18T09:44:46.897-07:00",
          "updated_at": "2025-04-18T09:44:46.897-07:00"
        }
      ],
      "sourceable_attributes": null,
      "alert_template_attributes": null,
      "resolution_rule_attributes": null
    },
    "relationships": {
      "alert_source_urgency_rules": {
        "data": [
          {
            "id": "b7904430-1840-443c-a264-c3b7e5b8eb95",
            "alerts_source_id": "a2e6df92-2b8c-406f-b19e-1d712862dc72",
            "alert_urgency_id": "1e59aab1-0fbe-4909-8306-c36d224c561a",
            "json_path": "$.alert.status",
            "operator": "is",
            "value": "Critical",
            "deleted_at": null,
            "created_at": "2025-04-18T09:44:46.897-07:00",
            "updated_at": "2025-04-18T09:44:46.897-07:00"
          }
        ]
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/vnd.api+json
data
object
required

Response

200
application/vnd.api+json
alert source updated
data
object
required