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": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "8b66e4ac6316d225f6921e4c370c6ad57f83fb2a9f096f0546593a96bc32ba90",
"alert_urgency_id": "f994724f-61cf-4020-ad08-5f1a609ef2a6",
"created_at": "2025-12-03T15:43:57.040-08:00",
"updated_at": "2025-12-03T15:43:57.085-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "bad8381d-cc85-4931-bb3a-77637e5db3d7",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "531859a3-5798-41ec-9665-47878cf25318",
"alerts_source_id": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"created_at": "2025-12-03T15:43:57.086-08:00",
"updated_at": "2025-12-03T15:43:57.086-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-12-03T15:43:57.042-08:00",
"updated_at": "2025-12-03T15:43:57.042-08:00",
"alert_field_id": "064983b5-4b5e-4b67-b014-47b223a3af50",
"alert_field": {
"id": "064983b5-4b5e-4b67-b014-47b223a3af50",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-12-03T15:43:55.210-08:00",
"updated_at": "2025-12-03T15:43:55.210-08:00"
}
},
{
"template_body": null,
"created_at": "2025-12-03T15:43:57.044-08:00",
"updated_at": "2025-12-03T15:43:57.044-08:00",
"alert_field_id": "ab84ece4-3c57-4f70-9b40-d56ba51a911f",
"alert_field": {
"id": "ab84ece4-3c57-4f70-9b40-d56ba51a911f",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-12-03T15:43:55.205-08:00",
"updated_at": "2025-12-03T15:43:55.205-08:00"
}
}
],
"sourceable_attributes": {
"id": "f4d49c32-0f27-4b44-bd7f-50ba4e1d75eb",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-12-03T15:43:57.029-08:00",
"updated_at": "2025-12-03T15:43:57.029-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "bad8381d-cc85-4931-bb3a-77637e5db3d7",
"alert_urgency_id": "531859a3-5798-41ec-9665-47878cf25318",
"alerts_source_id": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-12-03T15:43:57.086-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-12-03T15:43:57.086-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "cee54039-6675-4c59-94b2-d9c6e3b66dea",
"alert_field_id": "064983b5-4b5e-4b67-b014-47b223a3af50",
"alerts_source_id": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"created_at": "2025-12-03T15:43:57.042-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-12-03T15:43:57.042-08:00"
},
{
"id": "003f22a9-d291-402a-b0c4-bfc125689203",
"alert_field_id": "ab84ece4-3c57-4f70-9b40-d56ba51a911f",
"alerts_source_id": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"created_at": "2025-12-03T15:43:57.044-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-12-03T15:43:57.044-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": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "8b66e4ac6316d225f6921e4c370c6ad57f83fb2a9f096f0546593a96bc32ba90",
"alert_urgency_id": "f994724f-61cf-4020-ad08-5f1a609ef2a6",
"created_at": "2025-12-03T15:43:57.040-08:00",
"updated_at": "2025-12-03T15:43:57.085-08:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "bad8381d-cc85-4931-bb3a-77637e5db3d7",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "531859a3-5798-41ec-9665-47878cf25318",
"alerts_source_id": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"created_at": "2025-12-03T15:43:57.086-08:00",
"updated_at": "2025-12-03T15:43:57.086-08:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-12-03T15:43:57.042-08:00",
"updated_at": "2025-12-03T15:43:57.042-08:00",
"alert_field_id": "064983b5-4b5e-4b67-b014-47b223a3af50",
"alert_field": {
"id": "064983b5-4b5e-4b67-b014-47b223a3af50",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-12-03T15:43:55.210-08:00",
"updated_at": "2025-12-03T15:43:55.210-08:00"
}
},
{
"template_body": null,
"created_at": "2025-12-03T15:43:57.044-08:00",
"updated_at": "2025-12-03T15:43:57.044-08:00",
"alert_field_id": "ab84ece4-3c57-4f70-9b40-d56ba51a911f",
"alert_field": {
"id": "ab84ece4-3c57-4f70-9b40-d56ba51a911f",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-12-03T15:43:55.205-08:00",
"updated_at": "2025-12-03T15:43:55.205-08:00"
}
}
],
"sourceable_attributes": {
"id": "f4d49c32-0f27-4b44-bd7f-50ba4e1d75eb",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-12-03T15:43:57.029-08:00",
"updated_at": "2025-12-03T15:43:57.029-08:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "bad8381d-cc85-4931-bb3a-77637e5db3d7",
"alert_urgency_id": "531859a3-5798-41ec-9665-47878cf25318",
"alerts_source_id": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-12-03T15:43:57.086-08:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-12-03T15:43:57.086-08:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "cee54039-6675-4c59-94b2-d9c6e3b66dea",
"alert_field_id": "064983b5-4b5e-4b67-b014-47b223a3af50",
"alerts_source_id": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"created_at": "2025-12-03T15:43:57.042-08:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-12-03T15:43:57.042-08:00"
},
{
"id": "003f22a9-d291-402a-b0c4-bfc125689203",
"alert_field_id": "ab84ece4-3c57-4f70-9b40-d56ba51a911f",
"alerts_source_id": "6c66ef1d-7169-48fd-a70b-1d285e228ddb",
"created_at": "2025-12-03T15:43:57.044-08:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-12-03T15:43:57.044-08:00"
}
]
}
}
}
}