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": "23bc7f3a-415e-4522-9997-7092b7f6e97b",
    "type": "alert_sources",
    "attributes": {
      "name": "GW 2",
      "source_type": "datadog",
      "status": "setup_incomplete",
      "secret": "bed3e7cbcc95e17543aba6b9dda1543d306769ba917510c5f070ab08b85791ba",
      "alert_urgency_id": "8f0fbde9-1952-46a4-b9b2-c7aa40c54393",
      "created_at": "2025-05-29T17:40:17.157-07:00",
      "updated_at": "2025-05-29T17:40:22.240-07:00",
      "webhook_endpoint": "http://localhost:3001/webhooks/incoming/datadog_webhooks/notify/<TYPE>/<ID>",
      "owner_group_ids": [],
      "alert_source_urgency_rules_attributes": [
        {
          "id": "8401bdf9-716f-4186-b683-16ba6dafdddf",
          "json_path": "$.alert.status",
          "operator": "is",
          "value": "Critical",
          "alert_urgency_id": "0adae717-7ec2-4975-9336-f4f9b39a9b67",
          "alerts_source_id": "23bc7f3a-415e-4522-9997-7092b7f6e97b",
          "created_at": "2025-05-29T17:40:22.241-07:00",
          "updated_at": "2025-05-29T17:40:22.241-07:00"
        }
      ],
      "sourceable_attributes": null,
      "alert_template_attributes": null,
      "resolution_rule_attributes": null
    },
    "relationships": {
      "alert_source_urgency_rules": {
        "data": [
          {
            "id": "8401bdf9-716f-4186-b683-16ba6dafdddf",
            "alerts_source_id": "23bc7f3a-415e-4522-9997-7092b7f6e97b",
            "alert_urgency_id": "0adae717-7ec2-4975-9336-f4f9b39a9b67",
            "json_path": "$.alert.status",
            "operator": "is",
            "value": "Critical",
            "deleted_at": null,
            "created_at": "2025-05-29T17:40:22.241-07:00",
            "updated_at": "2025-05-29T17:40:22.241-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

Response

200
application/vnd.api+json

alert source updated

The response is of type object.