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": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "c0f6f9a4e785327e9de8f2acf5f3d5be235435b4b2150597aea11f7b5651bf96",
"alert_urgency_id": "08f45d49-47b9-4acb-9ce2-2d20d0782c87",
"created_at": "2026-01-07T11:53:22.449-08:00",
"updated_at": "2026-01-07T11:53:22.547-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "45e7741d-fcaf-4b06-9ffc-e02c1d2a9484",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "85475644-9679-42e2-85d5-8a782b5f0940",
"alerts_source_id": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"created_at": "2026-01-07T11:53:22.548-08:00",
"updated_at": "2026-01-07T11:53:22.548-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2026-01-07T11:53:22.456-08:00",
"updated_at": "2026-01-07T11:53:22.456-08:00",
"alert_field_id": "52fd78ef-b2f4-4c4c-9efb-aa1ab79c4c08",
"alert_field": {
"id": "52fd78ef-b2f4-4c4c-9efb-aa1ab79c4c08",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2026-01-07T11:53:17.426-08:00",
"updated_at": "2026-01-07T11:53:17.426-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-07T11:53:22.461-08:00",
"updated_at": "2026-01-07T11:53:22.461-08:00",
"alert_field_id": "31ed7149-21e8-42e5-8090-529e5251703e",
"alert_field": {
"id": "31ed7149-21e8-42e5-8090-529e5251703e",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2026-01-07T11:53:17.419-08:00",
"updated_at": "2026-01-07T11:53:17.419-08:00"
}
}
],
"sourceable_attributes": {
"id": "84ff5d11-af90-4f0b-9be1-e9fe58f85afe",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2026-01-07T11:53:22.429-08:00",
"updated_at": "2026-01-07T11:53:22.429-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "45e7741d-fcaf-4b06-9ffc-e02c1d2a9484",
"alert_urgency_id": "85475644-9679-42e2-85d5-8a782b5f0940",
"alerts_source_id": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2026-01-07T11:53:22.548-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2026-01-07T11:53:22.548-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "cbf79d18-6b2d-43c2-aa1d-2a9c1049008a",
"alert_field_id": "52fd78ef-b2f4-4c4c-9efb-aa1ab79c4c08",
"alerts_source_id": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"created_at": "2026-01-07T11:53:22.456-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2026-01-07T11:53:22.456-08:00"
},
{
"id": "9ae7b51a-2612-4306-9b8b-34881b8b4c87",
"alert_field_id": "31ed7149-21e8-42e5-8090-529e5251703e",
"alerts_source_id": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"created_at": "2026-01-07T11:53:22.461-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2026-01-07T11:53:22.461-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": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "c0f6f9a4e785327e9de8f2acf5f3d5be235435b4b2150597aea11f7b5651bf96",
"alert_urgency_id": "08f45d49-47b9-4acb-9ce2-2d20d0782c87",
"created_at": "2026-01-07T11:53:22.449-08:00",
"updated_at": "2026-01-07T11:53:22.547-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "45e7741d-fcaf-4b06-9ffc-e02c1d2a9484",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "85475644-9679-42e2-85d5-8a782b5f0940",
"alerts_source_id": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"created_at": "2026-01-07T11:53:22.548-08:00",
"updated_at": "2026-01-07T11:53:22.548-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2026-01-07T11:53:22.456-08:00",
"updated_at": "2026-01-07T11:53:22.456-08:00",
"alert_field_id": "52fd78ef-b2f4-4c4c-9efb-aa1ab79c4c08",
"alert_field": {
"id": "52fd78ef-b2f4-4c4c-9efb-aa1ab79c4c08",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2026-01-07T11:53:17.426-08:00",
"updated_at": "2026-01-07T11:53:17.426-08:00"
}
},
{
"template_body": null,
"created_at": "2026-01-07T11:53:22.461-08:00",
"updated_at": "2026-01-07T11:53:22.461-08:00",
"alert_field_id": "31ed7149-21e8-42e5-8090-529e5251703e",
"alert_field": {
"id": "31ed7149-21e8-42e5-8090-529e5251703e",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2026-01-07T11:53:17.419-08:00",
"updated_at": "2026-01-07T11:53:17.419-08:00"
}
}
],
"sourceable_attributes": {
"id": "84ff5d11-af90-4f0b-9be1-e9fe58f85afe",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2026-01-07T11:53:22.429-08:00",
"updated_at": "2026-01-07T11:53:22.429-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "45e7741d-fcaf-4b06-9ffc-e02c1d2a9484",
"alert_urgency_id": "85475644-9679-42e2-85d5-8a782b5f0940",
"alerts_source_id": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2026-01-07T11:53:22.548-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2026-01-07T11:53:22.548-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "cbf79d18-6b2d-43c2-aa1d-2a9c1049008a",
"alert_field_id": "52fd78ef-b2f4-4c4c-9efb-aa1ab79c4c08",
"alerts_source_id": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"created_at": "2026-01-07T11:53:22.456-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2026-01-07T11:53:22.456-08:00"
},
{
"id": "9ae7b51a-2612-4306-9b8b-34881b8b4c87",
"alert_field_id": "31ed7149-21e8-42e5-8090-529e5251703e",
"alerts_source_id": "df26d8aa-b769-4c54-a960-f1414e7cc4e7",
"created_at": "2026-01-07T11:53:22.461-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2026-01-07T11:53:22.461-08:00"
}
]
}
}
}
}