v1

latestOpenAPI 3.0.22026-07-144652931.4 MB
Event Orchestrations

Create a Cache Variable for a Service Event Orchestration

Create a Cache Variable for a Service 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: services.write

post/event_orchestrations/services/{service_id}/cache_variables

Path parameters

service_idstring required

The service ID

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'"
      }
    ]
  }
}