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": "de181d73-8c31-431f-b539-b4f89de40461",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "55b94c9a1010ffed5157b84fbbdf9d4402a58774e245b6dc8b075b6fdc7e2211",
"alert_urgency_id": "ae088503-1e07-496a-8e88-b94c532f96f4",
"created_at": "2026-01-21T11:15:03.557-08:00",
"updated_at": "2026-01-21T11:15:03.678-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "f551ff13-7e12-46d6-b3f4-8ac30fadb711",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "29dd0f70-eb10-4f73-bbbf-7ae08a66c2e5",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"created_at": "2026-01-21T11:15:03.679-08:00",
"updated_at": "2026-01-21T11:15:03.679-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2026-01-21T11:15:03.565-08:00",
"updated_at": "2026-01-21T11:15:03.565-08:00",
"alert_field_id": "2f36393f-e86b-4b41-8528-53303cbd50ee",
"alert_field": {
"id": "2f36393f-e86b-4b41-8528-53303cbd50ee",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2026-01-21T11:14:58.776-08:00",
"updated_at": "2026-01-21T11:14:58.776-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-21T11:15:03.571-08:00",
"updated_at": "2026-01-21T11:15:03.571-08:00",
"alert_field_id": "cd054203-976e-4dee-8684-b2eaa28e220d",
"alert_field": {
"id": "cd054203-976e-4dee-8684-b2eaa28e220d",
"slug": "external-url-field",
"name": "External URL Field",
"kind": "external_url",
"created_at": "2026-01-21T11:14:58.790-08:00",
"updated_at": "2026-01-21T11:14:58.790-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-21T11:15:03.578-08:00",
"updated_at": "2026-01-21T11:15:03.578-08:00",
"alert_field_id": "60806f85-4f88-48b9-baf0-3440c37e3bb6",
"alert_field": {
"id": "60806f85-4f88-48b9-baf0-3440c37e3bb6",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2026-01-21T11:14:58.768-08:00",
"updated_at": "2026-01-21T11:14:58.768-08:00"
}
}
],
"sourceable_attributes": {
"id": "91140e44-b1df-4992-add1-4377f1368477",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2026-01-21T11:15:03.538-08:00",
"updated_at": "2026-01-21T11:15:03.538-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "f551ff13-7e12-46d6-b3f4-8ac30fadb711",
"alert_urgency_id": "29dd0f70-eb10-4f73-bbbf-7ae08a66c2e5",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2026-01-21T11:15:03.679-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2026-01-21T11:15:03.679-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "4e65c4e2-16f1-45dc-98cb-6b738871515e",
"alert_field_id": "2f36393f-e86b-4b41-8528-53303cbd50ee",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"created_at": "2026-01-21T11:15:03.565-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2026-01-21T11:15:03.565-08:00"
},
{
"id": "76a754e8-25f5-45ee-a375-accf59fe95ce",
"alert_field_id": "cd054203-976e-4dee-8684-b2eaa28e220d",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"created_at": "2026-01-21T11:15:03.571-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2026-01-21T11:15:03.571-08:00"
},
{
"id": "67152e88-46ff-4616-8e01-333294550611",
"alert_field_id": "60806f85-4f88-48b9-baf0-3440c37e3bb6",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"created_at": "2026-01-21T11:15:03.578-08:00",
"deleted_at": null,
"position": 3,
"template_body": null,
"updated_at": "2026-01-21T11:15:03.578-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": "de181d73-8c31-431f-b539-b4f89de40461",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "55b94c9a1010ffed5157b84fbbdf9d4402a58774e245b6dc8b075b6fdc7e2211",
"alert_urgency_id": "ae088503-1e07-496a-8e88-b94c532f96f4",
"created_at": "2026-01-21T11:15:03.557-08:00",
"updated_at": "2026-01-21T11:15:03.678-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "f551ff13-7e12-46d6-b3f4-8ac30fadb711",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "29dd0f70-eb10-4f73-bbbf-7ae08a66c2e5",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"created_at": "2026-01-21T11:15:03.679-08:00",
"updated_at": "2026-01-21T11:15:03.679-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2026-01-21T11:15:03.565-08:00",
"updated_at": "2026-01-21T11:15:03.565-08:00",
"alert_field_id": "2f36393f-e86b-4b41-8528-53303cbd50ee",
"alert_field": {
"id": "2f36393f-e86b-4b41-8528-53303cbd50ee",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2026-01-21T11:14:58.776-08:00",
"updated_at": "2026-01-21T11:14:58.776-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-21T11:15:03.571-08:00",
"updated_at": "2026-01-21T11:15:03.571-08:00",
"alert_field_id": "cd054203-976e-4dee-8684-b2eaa28e220d",
"alert_field": {
"id": "cd054203-976e-4dee-8684-b2eaa28e220d",
"slug": "external-url-field",
"name": "External URL Field",
"kind": "external_url",
"created_at": "2026-01-21T11:14:58.790-08:00",
"updated_at": "2026-01-21T11:14:58.790-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-21T11:15:03.578-08:00",
"updated_at": "2026-01-21T11:15:03.578-08:00",
"alert_field_id": "60806f85-4f88-48b9-baf0-3440c37e3bb6",
"alert_field": {
"id": "60806f85-4f88-48b9-baf0-3440c37e3bb6",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2026-01-21T11:14:58.768-08:00",
"updated_at": "2026-01-21T11:14:58.768-08:00"
}
}
],
"sourceable_attributes": {
"id": "91140e44-b1df-4992-add1-4377f1368477",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2026-01-21T11:15:03.538-08:00",
"updated_at": "2026-01-21T11:15:03.538-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "f551ff13-7e12-46d6-b3f4-8ac30fadb711",
"alert_urgency_id": "29dd0f70-eb10-4f73-bbbf-7ae08a66c2e5",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2026-01-21T11:15:03.679-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2026-01-21T11:15:03.679-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "4e65c4e2-16f1-45dc-98cb-6b738871515e",
"alert_field_id": "2f36393f-e86b-4b41-8528-53303cbd50ee",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"created_at": "2026-01-21T11:15:03.565-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2026-01-21T11:15:03.565-08:00"
},
{
"id": "76a754e8-25f5-45ee-a375-accf59fe95ce",
"alert_field_id": "cd054203-976e-4dee-8684-b2eaa28e220d",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"created_at": "2026-01-21T11:15:03.571-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2026-01-21T11:15:03.571-08:00"
},
{
"id": "67152e88-46ff-4616-8e01-333294550611",
"alert_field_id": "60806f85-4f88-48b9-baf0-3440c37e3bb6",
"alerts_source_id": "de181d73-8c31-431f-b539-b4f89de40461",
"created_at": "2026-01-21T11:15:03.578-08:00",
"deleted_at": null,
"position": 3,
"template_body": null,
"updated_at": "2026-01-21T11:15:03.578-08:00"
}
]
}
}
}
}