Update a specific alert source by 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>",
"deduplicate_alerts_by_key": true,
"deduplication_key_kind": "payload",
"deduplication_key_path": "<string>",
"deduplication_key_regexp": "<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>",
"conditionable_type": "AlertField",
"conditionable_id": "<string>",
"kind": "payload",
"alert_urgency_id": "<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_matchable_type": "AlertField",
"identifier_matchable_id": "<string>",
"identifier_reference_kind": "payload",
"identifier_json_path": "<string>",
"identifier_value_regex": "<string>",
"conditions_attributes": [
{
"field": "<string>",
"operator": "is",
"value": "<string>",
"conditionable_type": "AlertField",
"conditionable_id": "<string>",
"kind": "payload"
}
]
},
"alert_source_fields_attributes": [
{
"alert_field_id": "<string>",
"template_body": "<string>"
}
]
}
}
}
'{
"data": {
"id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "4bd01692ba95f5bb2b2bb22627ed2a266548f0b31f96aa322ab29d626dfb477c",
"alert_urgency_id": "67281b03-47c0-4f7e-af21-a28830f3806b",
"created_at": "2026-01-28T12:46:23.113-08:00",
"updated_at": "2026-01-28T12:46:23.167-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "f47f27c2-99c3-45ad-8feb-d5fda26eea9f",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "c22a29d0-a934-4310-92f9-747d120ac8a1",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"created_at": "2026-01-28T12:46:23.169-08:00",
"updated_at": "2026-01-28T12:46:23.169-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2026-01-28T12:46:23.117-08:00",
"updated_at": "2026-01-28T12:46:23.117-08:00",
"alert_field_id": "81021992-89e1-4be0-baf3-9af375236acf",
"alert_field": {
"id": "81021992-89e1-4be0-baf3-9af375236acf",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2026-01-28T12:46:20.591-08:00",
"updated_at": "2026-01-28T12:46:20.591-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-28T12:46:23.119-08:00",
"updated_at": "2026-01-28T12:46:23.119-08:00",
"alert_field_id": "e75064b9-277a-4870-b937-d06b608fd9f0",
"alert_field": {
"id": "e75064b9-277a-4870-b937-d06b608fd9f0",
"slug": "external-url-field",
"name": "External URL Field",
"kind": "external_url",
"created_at": "2026-01-28T12:46:20.598-08:00",
"updated_at": "2026-01-28T12:46:20.598-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-28T12:46:23.121-08:00",
"updated_at": "2026-01-28T12:46:23.121-08:00",
"alert_field_id": "87936ca0-1823-4413-86a7-23221d2b94c2",
"alert_field": {
"id": "87936ca0-1823-4413-86a7-23221d2b94c2",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2026-01-28T12:46:20.588-08:00",
"updated_at": "2026-01-28T12:46:20.588-08:00"
}
}
],
"sourceable_attributes": {
"id": "f13da0f2-4d6c-4374-96f6-0288a349db72",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2026-01-28T12:46:23.101-08:00",
"updated_at": "2026-01-28T12:46:23.101-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "f47f27c2-99c3-45ad-8feb-d5fda26eea9f",
"alert_urgency_id": "c22a29d0-a934-4310-92f9-747d120ac8a1",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2026-01-28T12:46:23.169-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2026-01-28T12:46:23.169-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "8108b903-06cb-4104-b4b8-fdfa5d759d78",
"alert_field_id": "81021992-89e1-4be0-baf3-9af375236acf",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"created_at": "2026-01-28T12:46:23.117-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2026-01-28T12:46:23.117-08:00"
},
{
"id": "8fd013a6-42bf-4a06-b740-f65ec51c7765",
"alert_field_id": "e75064b9-277a-4870-b937-d06b608fd9f0",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"created_at": "2026-01-28T12:46:23.119-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2026-01-28T12:46:23.119-08:00"
},
{
"id": "ad9121c1-60f8-45e7-ae49-68ef5ba93833",
"alert_field_id": "87936ca0-1823-4413-86a7-23221d2b94c2",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"created_at": "2026-01-28T12:46:23.121-08:00",
"deleted_at": null,
"position": 3,
"template_body": null,
"updated_at": "2026-01-28T12:46:23.121-08:00"
}
]
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
alert source updated
Show child attributes
Was this page helpful?
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>",
"deduplicate_alerts_by_key": true,
"deduplication_key_kind": "payload",
"deduplication_key_path": "<string>",
"deduplication_key_regexp": "<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>",
"conditionable_type": "AlertField",
"conditionable_id": "<string>",
"kind": "payload",
"alert_urgency_id": "<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_matchable_type": "AlertField",
"identifier_matchable_id": "<string>",
"identifier_reference_kind": "payload",
"identifier_json_path": "<string>",
"identifier_value_regex": "<string>",
"conditions_attributes": [
{
"field": "<string>",
"operator": "is",
"value": "<string>",
"conditionable_type": "AlertField",
"conditionable_id": "<string>",
"kind": "payload"
}
]
},
"alert_source_fields_attributes": [
{
"alert_field_id": "<string>",
"template_body": "<string>"
}
]
}
}
}
'{
"data": {
"id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "4bd01692ba95f5bb2b2bb22627ed2a266548f0b31f96aa322ab29d626dfb477c",
"alert_urgency_id": "67281b03-47c0-4f7e-af21-a28830f3806b",
"created_at": "2026-01-28T12:46:23.113-08:00",
"updated_at": "2026-01-28T12:46:23.167-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "f47f27c2-99c3-45ad-8feb-d5fda26eea9f",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "c22a29d0-a934-4310-92f9-747d120ac8a1",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"created_at": "2026-01-28T12:46:23.169-08:00",
"updated_at": "2026-01-28T12:46:23.169-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2026-01-28T12:46:23.117-08:00",
"updated_at": "2026-01-28T12:46:23.117-08:00",
"alert_field_id": "81021992-89e1-4be0-baf3-9af375236acf",
"alert_field": {
"id": "81021992-89e1-4be0-baf3-9af375236acf",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2026-01-28T12:46:20.591-08:00",
"updated_at": "2026-01-28T12:46:20.591-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-28T12:46:23.119-08:00",
"updated_at": "2026-01-28T12:46:23.119-08:00",
"alert_field_id": "e75064b9-277a-4870-b937-d06b608fd9f0",
"alert_field": {
"id": "e75064b9-277a-4870-b937-d06b608fd9f0",
"slug": "external-url-field",
"name": "External URL Field",
"kind": "external_url",
"created_at": "2026-01-28T12:46:20.598-08:00",
"updated_at": "2026-01-28T12:46:20.598-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-28T12:46:23.121-08:00",
"updated_at": "2026-01-28T12:46:23.121-08:00",
"alert_field_id": "87936ca0-1823-4413-86a7-23221d2b94c2",
"alert_field": {
"id": "87936ca0-1823-4413-86a7-23221d2b94c2",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2026-01-28T12:46:20.588-08:00",
"updated_at": "2026-01-28T12:46:20.588-08:00"
}
}
],
"sourceable_attributes": {
"id": "f13da0f2-4d6c-4374-96f6-0288a349db72",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2026-01-28T12:46:23.101-08:00",
"updated_at": "2026-01-28T12:46:23.101-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "f47f27c2-99c3-45ad-8feb-d5fda26eea9f",
"alert_urgency_id": "c22a29d0-a934-4310-92f9-747d120ac8a1",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2026-01-28T12:46:23.169-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2026-01-28T12:46:23.169-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "8108b903-06cb-4104-b4b8-fdfa5d759d78",
"alert_field_id": "81021992-89e1-4be0-baf3-9af375236acf",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"created_at": "2026-01-28T12:46:23.117-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2026-01-28T12:46:23.117-08:00"
},
{
"id": "8fd013a6-42bf-4a06-b740-f65ec51c7765",
"alert_field_id": "e75064b9-277a-4870-b937-d06b608fd9f0",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"created_at": "2026-01-28T12:46:23.119-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2026-01-28T12:46:23.119-08:00"
},
{
"id": "ad9121c1-60f8-45e7-ae49-68ef5ba93833",
"alert_field_id": "87936ca0-1823-4413-86a7-23221d2b94c2",
"alerts_source_id": "29136a09-69c4-4d6e-93c2-e705dbabccb6",
"created_at": "2026-01-28T12:46:23.121-08:00",
"deleted_at": null,
"position": 3,
"template_body": null,
"updated_at": "2026-01-28T12:46:23.121-08:00"
}
]
}
}
}
}