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": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "a1b6224a9c2ea67483cfeb26a85e1d37586e9e423053927bea944d1249f50f49",
"alert_urgency_id": "6957cfaf-4299-46d7-a1f0-d21d9df2ae85",
"created_at": "2025-11-18T18:59:53.233-08:00",
"updated_at": "2025-11-18T18:59:53.322-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "d768b335-6d7d-4d12-a9ca-f2a811390093",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "f91543a5-4d8b-42bc-8273-2e8459127504",
"alerts_source_id": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"created_at": "2025-11-18T18:59:53.323-08:00",
"updated_at": "2025-11-18T18:59:53.323-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-11-18T18:59:53.239-08:00",
"updated_at": "2025-11-18T18:59:53.239-08:00",
"alert_field_id": "0e0e2830-4697-47a9-85be-3228b9af0d41",
"alert_field": {
"id": "0e0e2830-4697-47a9-85be-3228b9af0d41",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-11-18T18:59:49.755-08:00",
"updated_at": "2025-11-18T18:59:49.755-08:00"
}
},
{
"template_body": null,
"created_at": "2025-11-18T18:59:53.243-08:00",
"updated_at": "2025-11-18T18:59:53.243-08:00",
"alert_field_id": "ebe26c70-bc31-435c-ad1f-9d9de62d9392",
"alert_field": {
"id": "ebe26c70-bc31-435c-ad1f-9d9de62d9392",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-11-18T18:59:49.748-08:00",
"updated_at": "2025-11-18T18:59:49.748-08:00"
}
}
],
"sourceable_attributes": {
"id": "ef313bdc-4973-43ac-8751-2d3153e5f863",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-11-18T18:59:53.214-08:00",
"updated_at": "2025-11-18T18:59:53.214-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "d768b335-6d7d-4d12-a9ca-f2a811390093",
"alert_urgency_id": "f91543a5-4d8b-42bc-8273-2e8459127504",
"alerts_source_id": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-11-18T18:59:53.323-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-11-18T18:59:53.323-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "91333afe-a9c6-4802-a847-5b44d7f3d5ce",
"alert_field_id": "0e0e2830-4697-47a9-85be-3228b9af0d41",
"alerts_source_id": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"created_at": "2025-11-18T18:59:53.239-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-11-18T18:59:53.239-08:00"
},
{
"id": "382c5d62-0412-451f-9bd6-38f6f5784028",
"alert_field_id": "ebe26c70-bc31-435c-ad1f-9d9de62d9392",
"alerts_source_id": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"created_at": "2025-11-18T18:59:53.243-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-11-18T18:59:53.243-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": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "a1b6224a9c2ea67483cfeb26a85e1d37586e9e423053927bea944d1249f50f49",
"alert_urgency_id": "6957cfaf-4299-46d7-a1f0-d21d9df2ae85",
"created_at": "2025-11-18T18:59:53.233-08:00",
"updated_at": "2025-11-18T18:59:53.322-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "d768b335-6d7d-4d12-a9ca-f2a811390093",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "f91543a5-4d8b-42bc-8273-2e8459127504",
"alerts_source_id": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"created_at": "2025-11-18T18:59:53.323-08:00",
"updated_at": "2025-11-18T18:59:53.323-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-11-18T18:59:53.239-08:00",
"updated_at": "2025-11-18T18:59:53.239-08:00",
"alert_field_id": "0e0e2830-4697-47a9-85be-3228b9af0d41",
"alert_field": {
"id": "0e0e2830-4697-47a9-85be-3228b9af0d41",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-11-18T18:59:49.755-08:00",
"updated_at": "2025-11-18T18:59:49.755-08:00"
}
},
{
"template_body": null,
"created_at": "2025-11-18T18:59:53.243-08:00",
"updated_at": "2025-11-18T18:59:53.243-08:00",
"alert_field_id": "ebe26c70-bc31-435c-ad1f-9d9de62d9392",
"alert_field": {
"id": "ebe26c70-bc31-435c-ad1f-9d9de62d9392",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-11-18T18:59:49.748-08:00",
"updated_at": "2025-11-18T18:59:49.748-08:00"
}
}
],
"sourceable_attributes": {
"id": "ef313bdc-4973-43ac-8751-2d3153e5f863",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-11-18T18:59:53.214-08:00",
"updated_at": "2025-11-18T18:59:53.214-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "d768b335-6d7d-4d12-a9ca-f2a811390093",
"alert_urgency_id": "f91543a5-4d8b-42bc-8273-2e8459127504",
"alerts_source_id": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-11-18T18:59:53.323-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-11-18T18:59:53.323-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "91333afe-a9c6-4802-a847-5b44d7f3d5ce",
"alert_field_id": "0e0e2830-4697-47a9-85be-3228b9af0d41",
"alerts_source_id": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"created_at": "2025-11-18T18:59:53.239-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-11-18T18:59:53.239-08:00"
},
{
"id": "382c5d62-0412-451f-9bd6-38f6f5784028",
"alert_field_id": "ebe26c70-bc31-435c-ad1f-9d9de62d9392",
"alerts_source_id": "26aa669a-2514-40a0-ae86-1fd85b9f3a7a",
"created_at": "2025-11-18T18:59:53.243-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-11-18T18:59:53.243-08:00"
}
]
}
}
}
}