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": "1815e009-6ded-4238-a9df-47f26a71e545",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "b97b2d7893cdcccd6cca8c929af4ea90fcff072318cc8945c35329cd3e1b88b0",
"alert_urgency_id": "d858b6e3-ee87-4c12-bef5-1fad3071ff48",
"created_at": "2025-10-17T15:50:40.266-07:00",
"updated_at": "2025-10-17T15:50:40.359-07:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "680fb146-94d2-48e5-8378-422c69610ba7",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "fed354c5-c8df-4335-b5a8-2170e9123e9a",
"alerts_source_id": "1815e009-6ded-4238-a9df-47f26a71e545",
"created_at": "2025-10-17T15:50:40.361-07:00",
"updated_at": "2025-10-17T15:50:40.361-07:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-10-17T15:50:40.274-07:00",
"updated_at": "2025-10-17T15:50:40.274-07:00",
"alert_field_id": "f4d940f9-2e5e-4f44-9ac6-98e942966ec3",
"alert_field": {
"id": "f4d940f9-2e5e-4f44-9ac6-98e942966ec3",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-10-17T15:50:35.960-07:00",
"updated_at": "2025-10-17T15:50:35.960-07:00"
}
},
{
"template_body": null,
"created_at": "2025-10-17T15:50:40.280-07:00",
"updated_at": "2025-10-17T15:50:40.280-07:00",
"alert_field_id": "f995a28f-8fde-40b0-9b09-9cb7660a0a36",
"alert_field": {
"id": "f995a28f-8fde-40b0-9b09-9cb7660a0a36",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-10-17T15:50:35.951-07:00",
"updated_at": "2025-10-17T15:50:35.951-07:00"
}
}
],
"sourceable_attributes": {
"id": "6cb09f36-e3bb-4297-a828-e79d1d8234da",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-10-17T15:50:40.236-07:00",
"updated_at": "2025-10-17T15:50:40.236-07:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "680fb146-94d2-48e5-8378-422c69610ba7",
"alert_urgency_id": "fed354c5-c8df-4335-b5a8-2170e9123e9a",
"alerts_source_id": "1815e009-6ded-4238-a9df-47f26a71e545",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-10-17T15:50:40.361-07:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-10-17T15:50:40.361-07:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "109868ce-b7f9-4467-8640-496ac452fab6",
"alert_field_id": "f4d940f9-2e5e-4f44-9ac6-98e942966ec3",
"alerts_source_id": "1815e009-6ded-4238-a9df-47f26a71e545",
"created_at": "2025-10-17T15:50:40.274-07:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-10-17T15:50:40.274-07:00"
},
{
"id": "b9394fef-c940-4b03-a45d-ae08df845a71",
"alert_field_id": "f995a28f-8fde-40b0-9b09-9cb7660a0a36",
"alerts_source_id": "1815e009-6ded-4238-a9df-47f26a71e545",
"created_at": "2025-10-17T15:50:40.280-07:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-10-17T15:50:40.280-07: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": "1815e009-6ded-4238-a9df-47f26a71e545",
"type": "alert_sources",
"attributes": {
"name": "GW 2",
"source_type": "generic_webhook",
"status": "setup_incomplete",
"secret": "b97b2d7893cdcccd6cca8c929af4ea90fcff072318cc8945c35329cd3e1b88b0",
"alert_urgency_id": "d858b6e3-ee87-4c12-bef5-1fad3071ff48",
"created_at": "2025-10-17T15:50:40.266-07:00",
"updated_at": "2025-10-17T15:50:40.359-07:00",
"webhook_endpoint": "http://localhost:3001/webhooks/incoming/generic_webhooks/notify/<TYPE>/<ID>",
"owner_group_ids": [],
"alert_source_urgency_rules_attributes": [
{
"id": "680fb146-94d2-48e5-8378-422c69610ba7",
"json_path": "$.alert.status",
"operator": "is",
"value": "Critical",
"alert_urgency_id": "fed354c5-c8df-4335-b5a8-2170e9123e9a",
"alerts_source_id": "1815e009-6ded-4238-a9df-47f26a71e545",
"created_at": "2025-10-17T15:50:40.361-07:00",
"updated_at": "2025-10-17T15:50:40.361-07:00",
"conditionable_type": null,
"conditionable_id": null,
"kind": "payload"
}
],
"alert_source_fields_attributes": [
{
"template_body": null,
"created_at": "2025-10-17T15:50:40.274-07:00",
"updated_at": "2025-10-17T15:50:40.274-07:00",
"alert_field_id": "f4d940f9-2e5e-4f44-9ac6-98e942966ec3",
"alert_field": {
"id": "f4d940f9-2e5e-4f44-9ac6-98e942966ec3",
"slug": "description-field",
"name": "Description Field",
"kind": "description",
"created_at": "2025-10-17T15:50:35.960-07:00",
"updated_at": "2025-10-17T15:50:35.960-07:00"
}
},
{
"template_body": null,
"created_at": "2025-10-17T15:50:40.280-07:00",
"updated_at": "2025-10-17T15:50:40.280-07:00",
"alert_field_id": "f995a28f-8fde-40b0-9b09-9cb7660a0a36",
"alert_field": {
"id": "f995a28f-8fde-40b0-9b09-9cb7660a0a36",
"slug": "title-field",
"name": "Title Field",
"kind": "title",
"created_at": "2025-10-17T15:50:35.951-07:00",
"updated_at": "2025-10-17T15:50:35.951-07:00"
}
}
],
"sourceable_attributes": {
"id": "6cb09f36-e3bb-4297-a828-e79d1d8234da",
"auto_resolve": false,
"resolve_state": null,
"created_at": "2025-10-17T15:50:40.236-07:00",
"updated_at": "2025-10-17T15:50:40.236-07:00",
"field_mappings_attributes": [],
"field_mappings": []
},
"alert_template_attributes": null,
"resolution_rule_attributes": null
},
"relationships": {
"alert_source_urgency_rules": {
"data": [
{
"id": "680fb146-94d2-48e5-8378-422c69610ba7",
"alert_urgency_id": "fed354c5-c8df-4335-b5a8-2170e9123e9a",
"alerts_source_id": "1815e009-6ded-4238-a9df-47f26a71e545",
"conditionable_id": null,
"conditionable_type": null,
"created_at": "2025-10-17T15:50:40.361-07:00",
"deleted_at": null,
"json_path": "$.alert.status",
"kind": "payload",
"operator": "is",
"position": 1,
"updated_at": "2025-10-17T15:50:40.361-07:00",
"value": "Critical"
}
]
},
"alert_source_fields": {
"data": [
{
"id": "109868ce-b7f9-4467-8640-496ac452fab6",
"alert_field_id": "f4d940f9-2e5e-4f44-9ac6-98e942966ec3",
"alerts_source_id": "1815e009-6ded-4238-a9df-47f26a71e545",
"created_at": "2025-10-17T15:50:40.274-07:00",
"deleted_at": null,
"position": 1,
"template_body": null,
"updated_at": "2025-10-17T15:50:40.274-07:00"
},
{
"id": "b9394fef-c940-4b03-a45d-ae08df845a71",
"alert_field_id": "f995a28f-8fde-40b0-9b09-9cb7660a0a36",
"alerts_source_id": "1815e009-6ded-4238-a9df-47f26a71e545",
"created_at": "2025-10-17T15:50:40.280-07:00",
"deleted_at": null,
"position": 2,
"template_body": null,
"updated_at": "2025-10-17T15:50:40.280-07:00"
}
]
}
}
}
}