v1

latestOpenAPI 3.0.22026-07-144652931.4 MB
Event Enrichments

Update Event Enrichment rules

Event Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.

<!-- theme: warning -->

Early Access

This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.

Update the enrichment rules for a specific Event Enrichment. Performs a full replacement of the rules set.

put/enrichment/event_enrichments/{id}/rules

Path parameters

idstring required

The ID of the Event Enrichment.

Headers

Acceptstring required

The Accept header is used as a versioning header.

Content-Type'application/json' required

Request body

Example request

{
  "orchestration_path": {
    "sets": [
      {
        "rules": [
          {
            "conditions": [
              {
                "expression": "event.summary matches part 'my service error'"
              }
            ]
          }
        ]
      }
    ]
  }
}

Response

The updated Event Enrichment rules (orchestration path).

Example response

{
  "orchestration_path": {
    "sets": [
      {
        "rules": [
          {
            "conditions": [
              {
                "expression": "event.summary matches part 'my service error'"
              }
            ]
          }
        ]
      }
    ]
  }
}