{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/JourneyActionConfigurationUpsertRequestModel",
  "title": "JourneyActionConfigurationUpsertRequestModel",
  "required": [
    "name",
    "rules"
  ],
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name",
      "example": "sample-action"
    },
    "cooldownPeriodInMinutes": {
      "type": "integer",
      "description": "Cooldown Period In Minutes",
      "format": "int32",
      "example": 10
    },
    "rules": {
      "$ref": "#/components/schemas/Rules"
    },
    "actionTriggers": {
      "type": "array",
      "example": [
        {
          "type": "Webhook",
          "webhookURL": "https://hooks.us.webexconnect.io/events/6M347NJ6",
          "attributes": {
            "httpverb": "post",
            "requestbody": "{\"SMS\":\"12263762551\",\"callID\":\"\",\"MessageToSend\":\"Hello there!\"}"
          }
        }
      ],
      "items": {
        "$ref": "#/components/schemas/JourneyActionTriggerConfig"
      }
    },
    "isActive": {
      "type": "boolean",
      "description": "Is Journey Action Configuration Active",
      "example": true
    }
  },
  "description": "Create a new, or Update and existing Journey Action"
}