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": "afa24f5b-eeb7-446f-8e46-282654b60451",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "281b19bbcc24541a9535a5f51cf06c33a280e7a82d391cb46d1c16e9e85c2dcc",
"alert_urgency_id": "0adde6fa-616b-4084-ba14-2d739104daeb",
"created_at": "2025-11-20T10:18:00.324-08:00",
"updated_at": "2025-11-20T10:18:00.409-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "b5a14c76-ce72-40de-880b-bcf997f77254",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "04a2133e-5193-4603-9245-411a45b7bd33",
"alerts_source_id": "afa24f5b-eeb7-446f-8e46-282654b60451",
"created_at": "2025-11-20T10:18:00.410-08:00",
"updated_at": "2025-11-20T10:18:00.410-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-11-20T10:18:00.333-08:00",
"updated_at": "2025-11-20T10:18:00.333-08:00",
"alert_field_id": "d43b51fe-36d2-4755-b36d-da4a9b56e376",
"alert_field": {
"id": "d43b51fe-36d2-4755-b36d-da4a9b56e376",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-11-20T10:17:56.829-08:00",
"updated_at": "2025-11-20T10:17:56.829-08:00"
}
},
{
"template_body": null,
"created_at": "2025-11-20T10:18:00.340-08:00",
"updated_at": "2025-11-20T10:18:00.340-08:00",
"alert_field_id": "5e94a5a7-61ab-4f6d-a6a9-e43c5a617e5d",
"alert_field": {
"id": "5e94a5a7-61ab-4f6d-a6a9-e43c5a617e5d",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-11-20T10:17:56.824-08:00",
"updated_at": "2025-11-20T10:17:56.824-08:00"
}
}
],
"sourceable_attributes": {
"id": "08209092-1c9e-4042-a073-47dbc9946999",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-11-20T10:18:00.298-08:00",
"updated_at": "2025-11-20T10:18:00.298-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "b5a14c76-ce72-40de-880b-bcf997f77254",
"alert_urgency_id": "04a2133e-5193-4603-9245-411a45b7bd33",
"alerts_source_id": "afa24f5b-eeb7-446f-8e46-282654b60451",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-11-20T10:18:00.410-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-11-20T10:18:00.410-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "550cb8f7-aed9-45fb-985b-19e147cf8cc4",
"alert_field_id": "d43b51fe-36d2-4755-b36d-da4a9b56e376",
"alerts_source_id": "afa24f5b-eeb7-446f-8e46-282654b60451",
"created_at": "2025-11-20T10:18:00.333-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-11-20T10:18:00.333-08:00"
},
{
"id": "8aa2a11d-8012-44ba-983a-f70da4e632b4",
"alert_field_id": "5e94a5a7-61ab-4f6d-a6a9-e43c5a617e5d",
"alerts_source_id": "afa24f5b-eeb7-446f-8e46-282654b60451",
"created_at": "2025-11-20T10:18:00.340-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-11-20T10:18:00.340-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": "afa24f5b-eeb7-446f-8e46-282654b60451",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "281b19bbcc24541a9535a5f51cf06c33a280e7a82d391cb46d1c16e9e85c2dcc",
"alert_urgency_id": "0adde6fa-616b-4084-ba14-2d739104daeb",
"created_at": "2025-11-20T10:18:00.324-08:00",
"updated_at": "2025-11-20T10:18:00.409-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "b5a14c76-ce72-40de-880b-bcf997f77254",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "04a2133e-5193-4603-9245-411a45b7bd33",
"alerts_source_id": "afa24f5b-eeb7-446f-8e46-282654b60451",
"created_at": "2025-11-20T10:18:00.410-08:00",
"updated_at": "2025-11-20T10:18:00.410-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-11-20T10:18:00.333-08:00",
"updated_at": "2025-11-20T10:18:00.333-08:00",
"alert_field_id": "d43b51fe-36d2-4755-b36d-da4a9b56e376",
"alert_field": {
"id": "d43b51fe-36d2-4755-b36d-da4a9b56e376",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-11-20T10:17:56.829-08:00",
"updated_at": "2025-11-20T10:17:56.829-08:00"
}
},
{
"template_body": null,
"created_at": "2025-11-20T10:18:00.340-08:00",
"updated_at": "2025-11-20T10:18:00.340-08:00",
"alert_field_id": "5e94a5a7-61ab-4f6d-a6a9-e43c5a617e5d",
"alert_field": {
"id": "5e94a5a7-61ab-4f6d-a6a9-e43c5a617e5d",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-11-20T10:17:56.824-08:00",
"updated_at": "2025-11-20T10:17:56.824-08:00"
}
}
],
"sourceable_attributes": {
"id": "08209092-1c9e-4042-a073-47dbc9946999",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-11-20T10:18:00.298-08:00",
"updated_at": "2025-11-20T10:18:00.298-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "b5a14c76-ce72-40de-880b-bcf997f77254",
"alert_urgency_id": "04a2133e-5193-4603-9245-411a45b7bd33",
"alerts_source_id": "afa24f5b-eeb7-446f-8e46-282654b60451",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-11-20T10:18:00.410-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-11-20T10:18:00.410-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "550cb8f7-aed9-45fb-985b-19e147cf8cc4",
"alert_field_id": "d43b51fe-36d2-4755-b36d-da4a9b56e376",
"alerts_source_id": "afa24f5b-eeb7-446f-8e46-282654b60451",
"created_at": "2025-11-20T10:18:00.333-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-11-20T10:18:00.333-08:00"
},
{
"id": "8aa2a11d-8012-44ba-983a-f70da4e632b4",
"alert_field_id": "5e94a5a7-61ab-4f6d-a6a9-e43c5a617e5d",
"alerts_source_id": "afa24f5b-eeb7-446f-8e46-282654b60451",
"created_at": "2025-11-20T10:18:00.340-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-11-20T10:18:00.340-08:00"
}
]
}
}
}
}