Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/vnd.api+json
Response
alert source updated
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": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "5c5678ae7343d3146a8b7eec8d91448efe3f94b853825117032e792f3d2c0b61",
"alert_urgency_id": "1900ab79-059f-4eb0-bbe9-52cb089e8162",
"created_at": "2025-11-06T13:18:31.367-08:00",
"updated_at": "2025-11-06T13:18:31.518-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "ac2930a4-5a2f-4c85-b0a0-92d268f6c893",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "8a3eeee5-5f1d-481a-ab23-be4515ce68d1",
"alerts_source_id": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"created_at": "2025-11-06T13:18:31.520-08:00",
"updated_at": "2025-11-06T13:18:31.520-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-11-06T13:18:31.375-08:00",
"updated_at": "2025-11-06T13:18:31.375-08:00",
"alert_field_id": "25194d18-630f-4001-9572-35d2c661b48a",
"alert_field": {
"id": "25194d18-630f-4001-9572-35d2c661b48a",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-11-06T13:18:26.346-08:00",
"updated_at": "2025-11-06T13:18:26.346-08:00"
}
},
{
"template_body": null,
"created_at": "2025-11-06T13:18:31.383-08:00",
"updated_at": "2025-11-06T13:18:31.383-08:00",
"alert_field_id": "92972526-4770-4278-9ae7-c6a2a1d63cf6",
"alert_field": {
"id": "92972526-4770-4278-9ae7-c6a2a1d63cf6",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-11-06T13:18:26.337-08:00",
"updated_at": "2025-11-06T13:18:26.337-08:00"
}
}
],
"sourceable_attributes": {
"id": "d0b48d70-53d0-46fb-89c5-49bd677c1872",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-11-06T13:18:31.339-08:00",
"updated_at": "2025-11-06T13:18:31.339-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "ac2930a4-5a2f-4c85-b0a0-92d268f6c893",
"alert_urgency_id": "8a3eeee5-5f1d-481a-ab23-be4515ce68d1",
"alerts_source_id": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-11-06T13:18:31.520-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-11-06T13:18:31.520-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "e746caf8-ba54-44f4-8adf-9db2b1ec4d32",
"alert_field_id": "25194d18-630f-4001-9572-35d2c661b48a",
"alerts_source_id": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"created_at": "2025-11-06T13:18:31.375-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-11-06T13:18:31.375-08:00"
},
{
"id": "86e6173f-21ab-4fae-aec5-b2fecbe5a03b",
"alert_field_id": "92972526-4770-4278-9ae7-c6a2a1d63cf6",
"alerts_source_id": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"created_at": "2025-11-06T13:18:31.383-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-11-06T13:18:31.383-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": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "5c5678ae7343d3146a8b7eec8d91448efe3f94b853825117032e792f3d2c0b61",
"alert_urgency_id": "1900ab79-059f-4eb0-bbe9-52cb089e8162",
"created_at": "2025-11-06T13:18:31.367-08:00",
"updated_at": "2025-11-06T13:18:31.518-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "ac2930a4-5a2f-4c85-b0a0-92d268f6c893",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "8a3eeee5-5f1d-481a-ab23-be4515ce68d1",
"alerts_source_id": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"created_at": "2025-11-06T13:18:31.520-08:00",
"updated_at": "2025-11-06T13:18:31.520-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-11-06T13:18:31.375-08:00",
"updated_at": "2025-11-06T13:18:31.375-08:00",
"alert_field_id": "25194d18-630f-4001-9572-35d2c661b48a",
"alert_field": {
"id": "25194d18-630f-4001-9572-35d2c661b48a",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-11-06T13:18:26.346-08:00",
"updated_at": "2025-11-06T13:18:26.346-08:00"
}
},
{
"template_body": null,
"created_at": "2025-11-06T13:18:31.383-08:00",
"updated_at": "2025-11-06T13:18:31.383-08:00",
"alert_field_id": "92972526-4770-4278-9ae7-c6a2a1d63cf6",
"alert_field": {
"id": "92972526-4770-4278-9ae7-c6a2a1d63cf6",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-11-06T13:18:26.337-08:00",
"updated_at": "2025-11-06T13:18:26.337-08:00"
}
}
],
"sourceable_attributes": {
"id": "d0b48d70-53d0-46fb-89c5-49bd677c1872",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-11-06T13:18:31.339-08:00",
"updated_at": "2025-11-06T13:18:31.339-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "ac2930a4-5a2f-4c85-b0a0-92d268f6c893",
"alert_urgency_id": "8a3eeee5-5f1d-481a-ab23-be4515ce68d1",
"alerts_source_id": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-11-06T13:18:31.520-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-11-06T13:18:31.520-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "e746caf8-ba54-44f4-8adf-9db2b1ec4d32",
"alert_field_id": "25194d18-630f-4001-9572-35d2c661b48a",
"alerts_source_id": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"created_at": "2025-11-06T13:18:31.375-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-11-06T13:18:31.375-08:00"
},
{
"id": "86e6173f-21ab-4fae-aec5-b2fecbe5a03b",
"alert_field_id": "92972526-4770-4278-9ae7-c6a2a1d63cf6",
"alerts_source_id": "6686cdd9-9766-49c1-8fe9-e757d75e9b45",
"created_at": "2025-11-06T13:18:31.383-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-11-06T13:18:31.383-08:00"
}
]
}
}
}
}