v1

latestOpenAPI 3.0.22026-07-144652931.4 MB
Event Orchestrations

Create a Cache Variable for a Global Event Orchestration

Create a Cache Variable for a Global Event Orchestration.

Cache Variables allow you to store event data on an Event Orchestration, which can then be used in Event Orchestration rules as part of conditions or actions.

For more information see the API Concepts Document

Scoped OAuth requires: event_orchestrations.write

post/event_orchestrations/{id}/cache_variables

Path parameters

idstring required

The ID of an Event Orchestration.

Headers

Acceptstring required

The Accept header is used as a versioning header.

Content-Type'application/json' required

Request body

Example request

{
  "cache_variable": {
    "configuration": {
      "source": "event.summary"
    },
    "conditions": [
      {
        "expression": "event.summary matches part 'my service error'"
      }
    ]
  }
}

Response

The created Cache Variable for this Event Orchestration.

Example response

{
  "cache_variable": {
    "configuration": {
      "source": "event.summary"
    },
    "conditions": [
      {
        "expression": "event.summary matches part 'my service error'"
      }
    ]
  }
}