{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Update Event Destination",
  "description": "Change a destination's name, config, auth, filter, or condition. Fields you leave out do not change.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Name of the destination, unique in the organization.",
      "minLength": 1
    },
    "config": {
      "type": "object",
      "x-gql-type": "map",
      "title": "Configuration",
      "description": "Replaces the current config. Where and how events are sent, in the shape of the adapter's `configSchema` from `eventDestinationAdapters`. The API returns it, so put credentials in `auth`."
    },
    "auth": {
      "type": "object",
      "x-gql-type": "map",
      "title": "Credentials",
      "description": "Replaces the current credentials. In the shape of the adapter's `authSchema` from `eventDestinationAdapters`. The API never returns them. Pass `null` to remove them."
    },
    "filter": {
      "type": "object",
      "x-gql-type": "event_filter_input",
      "title": "Filter",
      "description": "The events the destination receives. Fields you leave out of the filter do not change."
    },
    "condition": {
      "type": "string",
      "title": "Condition",
      "description": "A jq expression run on each CloudEvent that the filter matches. The event is sent only when it outputs `true`. Use it for checks the filter cannot express, such as comparisons, `or`, or values inside `data`. It must finish within the install's timeout (1 second by default) and cannot use `import`, `include`, `module`, `modulemeta`, or `get_search_list`. Pass an empty string to remove the condition.",
      "examples": [".data.attributes[\"md-environment\"] == \"prod\" or .data.attributes[\"md-environment\"] == \"staging\""]
    }
  }
}
