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": "af22c000-0a82-46db-af13-dada67b2b149",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "73eeaa21fb41765e0e6ae1d927e0889c0a5952092922614517da772ed4ba8264",
"alert_urgency_id": "446c271b-da9e-44c2-b4b9-6697fbd7eaab",
"created_at": "2026-02-18T14:54:10.264-08:00",
"updated_at": "2026-02-18T14:54:10.416-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "3d5a668e-5541-4952-a0c1-89654cddbcbd",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "012250b8-abca-4cfd-a577-ef2bc1e991dd",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"created_at": "2026-02-18T14:54:10.419-08:00",
"updated_at": "2026-02-18T14:54:10.419-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2026-02-18T14:54:10.275-08:00",
"updated_at": "2026-02-18T14:54:10.275-08:00",
"alert_field_id": "9644efd8-07bd-4b32-92f9-9b244bcb0acc",
"alert_field": {
"id": "9644efd8-07bd-4b32-92f9-9b244bcb0acc",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2026-02-18T14:54:03.916-08:00",
"updated_at": "2026-02-18T14:54:03.916-08:00"
}
},
{
"template_body": null,
"created_at": "2026-02-18T14:54:10.281-08:00",
"updated_at": "2026-02-18T14:54:10.281-08:00",
"alert_field_id": "e129245e-6b56-4284-9fa7-4b57a3c8b638",
"alert_field": {
"id": "e129245e-6b56-4284-9fa7-4b57a3c8b638",
"slug": "external-url-field",
"name": "External URL Field",
"kind": "external_url",
"created_at": "2026-02-18T14:54:03.948-08:00",
"updated_at": "2026-02-18T14:54:03.948-08:00"
}
},
{
"template_body": null,
"created_at": "2026-02-18T14:54:10.291-08:00",
"updated_at": "2026-02-18T14:54:10.291-08:00",
"alert_field_id": "2ce7ea3d-0a51-4b63-8fa1-148be0ca076a",
"alert_field": {
"id": "2ce7ea3d-0a51-4b63-8fa1-148be0ca076a",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2026-02-18T14:54:03.899-08:00",
"updated_at": "2026-02-18T14:54:03.899-08:00"
}
}
],
"sourceable_attributes": {
"id": "0648f409-601a-4fb0-a0a9-8ba632800f02",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2026-02-18T14:54:10.237-08:00",
"updated_at": "2026-02-18T14:54:10.237-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "3d5a668e-5541-4952-a0c1-89654cddbcbd",
"alert_urgency_id": "012250b8-abca-4cfd-a577-ef2bc1e991dd",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2026-02-18T14:54:10.419-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2026-02-18T14:54:10.419-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "83e463ca-db60-4c1b-b030-86f2552fa544",
"alert_field_id": "9644efd8-07bd-4b32-92f9-9b244bcb0acc",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"created_at": "2026-02-18T14:54:10.275-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2026-02-18T14:54:10.275-08:00"
},
{
"id": "d3c8564e-1a66-4a79-a9b6-b9a47de03b02",
"alert_field_id": "e129245e-6b56-4284-9fa7-4b57a3c8b638",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"created_at": "2026-02-18T14:54:10.281-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2026-02-18T14:54:10.281-08:00"
},
{
"id": "4cdc9e75-8682-49a9-9ceb-63d29f6f881c",
"alert_field_id": "2ce7ea3d-0a51-4b63-8fa1-148be0ca076a",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"created_at": "2026-02-18T14:54:10.291-08:00",
"deleted_at": null,
"position": 3,
"template_body": null,
"updated_at": "2026-02-18T14:54:10.291-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": "af22c000-0a82-46db-af13-dada67b2b149",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "73eeaa21fb41765e0e6ae1d927e0889c0a5952092922614517da772ed4ba8264",
"alert_urgency_id": "446c271b-da9e-44c2-b4b9-6697fbd7eaab",
"created_at": "2026-02-18T14:54:10.264-08:00",
"updated_at": "2026-02-18T14:54:10.416-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "3d5a668e-5541-4952-a0c1-89654cddbcbd",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "012250b8-abca-4cfd-a577-ef2bc1e991dd",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"created_at": "2026-02-18T14:54:10.419-08:00",
"updated_at": "2026-02-18T14:54:10.419-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2026-02-18T14:54:10.275-08:00",
"updated_at": "2026-02-18T14:54:10.275-08:00",
"alert_field_id": "9644efd8-07bd-4b32-92f9-9b244bcb0acc",
"alert_field": {
"id": "9644efd8-07bd-4b32-92f9-9b244bcb0acc",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2026-02-18T14:54:03.916-08:00",
"updated_at": "2026-02-18T14:54:03.916-08:00"
}
},
{
"template_body": null,
"created_at": "2026-02-18T14:54:10.281-08:00",
"updated_at": "2026-02-18T14:54:10.281-08:00",
"alert_field_id": "e129245e-6b56-4284-9fa7-4b57a3c8b638",
"alert_field": {
"id": "e129245e-6b56-4284-9fa7-4b57a3c8b638",
"slug": "external-url-field",
"name": "External URL Field",
"kind": "external_url",
"created_at": "2026-02-18T14:54:03.948-08:00",
"updated_at": "2026-02-18T14:54:03.948-08:00"
}
},
{
"template_body": null,
"created_at": "2026-02-18T14:54:10.291-08:00",
"updated_at": "2026-02-18T14:54:10.291-08:00",
"alert_field_id": "2ce7ea3d-0a51-4b63-8fa1-148be0ca076a",
"alert_field": {
"id": "2ce7ea3d-0a51-4b63-8fa1-148be0ca076a",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2026-02-18T14:54:03.899-08:00",
"updated_at": "2026-02-18T14:54:03.899-08:00"
}
}
],
"sourceable_attributes": {
"id": "0648f409-601a-4fb0-a0a9-8ba632800f02",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2026-02-18T14:54:10.237-08:00",
"updated_at": "2026-02-18T14:54:10.237-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "3d5a668e-5541-4952-a0c1-89654cddbcbd",
"alert_urgency_id": "012250b8-abca-4cfd-a577-ef2bc1e991dd",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2026-02-18T14:54:10.419-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2026-02-18T14:54:10.419-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "83e463ca-db60-4c1b-b030-86f2552fa544",
"alert_field_id": "9644efd8-07bd-4b32-92f9-9b244bcb0acc",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"created_at": "2026-02-18T14:54:10.275-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2026-02-18T14:54:10.275-08:00"
},
{
"id": "d3c8564e-1a66-4a79-a9b6-b9a47de03b02",
"alert_field_id": "e129245e-6b56-4284-9fa7-4b57a3c8b638",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"created_at": "2026-02-18T14:54:10.281-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2026-02-18T14:54:10.281-08:00"
},
{
"id": "4cdc9e75-8682-49a9-9ceb-63d29f6f881c",
"alert_field_id": "2ce7ea3d-0a51-4b63-8fa1-148be0ca076a",
"alerts_source_id": "af22c000-0a82-46db-af13-dada67b2b149",
"created_at": "2026-02-18T14:54:10.291-08:00",
"deleted_at": null,
"position": 3,
"template_body": null,
"updated_at": "2026-02-18T14:54:10.291-08:00"
}
]
}
}
}
}