Skip to main content

Overview

Updates the router configuration for a specific event orchestration. This allows you to modify routing rules, conditions, and actions.
This is a write tool that modifies your PagerDuty account. It requires the --enable-write-tools flag to be enabled.

Parameters

orchestration_id
string
required
The ID of the event orchestration to update
router_update
EventOrchestrationRouterUpdateRequest
required
The updated router configuration

Response

Returns the updated EventOrchestrationRouter object with the new configuration.

Usage Examples

Update routing rules

Update the router for orchestration P1A2B3C to route database errors to service PABCDEF

Disable a routing rule

Disable the first routing rule in orchestration P1A2B3C

Change catch-all behavior

Update orchestration P1A2B3C to route unmatched events to the default service
This tool replaces the entire router configuration. Make sure to include all rules you want to keep. Consider using append_event_orchestration_router_rule if you only want to add a new rule.

PCL Expression Examples

PagerDuty Common Expression Language (PCL) is used for rule conditions:
  • event.summary matches part 'database' - Summary contains “database”
  • event.severity equals 'critical' - Severity is critical
  • event.source matches regex 'prod-.*' - Source matches pattern
  • event.custom_details.region equals 'us-west-2' - Custom field match

Build docs developers (and LLMs) love