Optimizely · Schema

EventCreateRequest

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
title string Title of the event
description string Description of the event
campaign_id string ID of the campaign under which the event is to be created
is_all_day boolean Indicate if the event is all day long
start_date string Start date and time of the event in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`
end_date string End date and time of the event in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`
fields array List of fields to be associated with the event
View JSON Schema on GitHub

JSON Schema

optimizely-event-create-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-event-create-request-schema.json",
  "title": "EventCreateRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-events-api-openapi.yml#/components/schemas/EventCreateRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "title": {
      "type": "string",
      "description": "Title of the event"
    },
    "description": {
      "type": "string",
      "description": "Description of the event"
    },
    "campaign_id": {
      "type": "string",
      "description": "ID of the campaign under which the event is to be created"
    },
    "is_all_day": {
      "type": "boolean",
      "description": "Indicate if the event is all day long"
    },
    "start_date": {
      "type": "string",
      "format": "date-time",
      "description": "Start date and time of the event in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`"
    },
    "end_date": {
      "type": "string",
      "format": "date-time",
      "description": "End date and time of the event in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`"
    },
    "fields": {
      "type": "array",
      "minItems": 0,
      "description": "List of fields to be associated with the event",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "oneOf": [
          {
            "$ref": "#/$defs/StringTypeObjectField"
          },
          {
            "$ref": "#/$defs/MultiChoiceTypeObjectField"
          },
          {
            "$ref": "#/$defs/DropdownTypeObjectField"
          },
          {
            "$ref": "#/$defs/RadioButtonTypeObjectField"
          },
          {
            "$ref": "#/$defs/NumberTypeObjectField"
          },
          {
            "$ref": "#/$defs/DateTypeObjectField"
          },
          {
            "$ref": "#/$defs/AssetTypeObjectField"
          }
        ]
      }
    }
  },
  "required": [
    "title",
    "is_all_day",
    "start_date",
    "end_date"
  ],
  "$defs": {
    "AssetTypeObjectField": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectField"
        },
        {
          "$ref": "#/$defs/AssetTypeObjectFieldUpdatePayload"
        }
      ]
    },
    "AssetTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Payload for fields with attachments",
              "maxItems": 1,
              "items": {
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Title of the image or video",
                    "minLength": 1
                  },
                  "key": {
                    "type": "string",
                    "description": "Unique identifier of the file upload session. This is the `upload_meta_fields.key` field retrieved from the `/v3/upload-url` endpoint."
                  }
                },
                "required": [
                  "title",
                  "key"
                ]
              }
            }
          }
        }
      ]
    },
    "BaseObjectField": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "description": "Unique identifier of the field"
            }
          },
          "required": [
            "id"
          ]
        }
      ]
    },
    "BaseObjectFieldUpdatePayload": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of the field"
        },
        "values": {
          "type": "array",
          "description": "Values for the campaign field"
        }
      },
      "required": [
        "type",
        "values"
      ]
    },
    "DateTypeObjectField": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectField"
        },
        {
          "$ref": "#/$defs/DateTypeObjectFieldUpdatePayload"
        }
      ]
    },
    "DateTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Array of date-time values, in ISO 8601 UTC format (2020-02-10T10:40:45Z)",
              "items": {
                "type": "string",
                "format": "date-time",
                "description": "Date and time, in ISO 8601 UTC format (2020-02-10T10:40:45Z)"
              },
              "maxItems": 1
            }
          }
        }
      ]
    },
    "DropdownTypeObjectField": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectField"
        },
        {
          "$ref": "#/$defs/DropdownTypeObjectFieldUpdatePayload"
        }
      ]
    },
    "DropdownTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Array of choice ID. Multiple choice values are not acceptable for `is_multi_select=false`.",
              "items": {
                "type": "string"
              }
            }
          }
        }
      ]
    },
    "MultiChoiceTypeObjectField": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectField"
        },
        {
          "$ref": "#/$defs/MultiChoiceTypeObjectFieldUpdatePayload"
        }
      ]
    },
    "MultiChoiceTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Array of choice IDs",
              "items": {
                "type": "string"
              }
            }
          }
        }
      ]
    },
    "NumberTypeObjectField": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectField"
        },
        {
          "$ref": "#/$defs/NumberTypeObjectFieldUpdatePayload"
        }
      ]
    },
    "NumberTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Accepts a single numeric value",
              "maxItems": 1,
              "items": {
                "type": "number"
              }
            }
          }
        }
      ]
    },
    "RadioButtonTypeObjectField": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectField"
        },
        {
          "$ref": "#/$defs/RadioButtonTypeObjectFieldUpdatePayload"
        }
      ]
    },
    "RadioButtonTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Accepts a single choice Id.",
              "maxItems": 1,
              "items": {
                "type": "string"
              }
            }
          }
        }
      ]
    },
    "StringTypeObjectField": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectField"
        },
        {
          "$ref": "#/$defs/StringTypeObjectFieldUpdatePayload"
        }
      ]
    },
    "StringTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Any single string",
              "items": {
                "type": "string"
              }
            }
          }
        }
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/optimizely-event-create-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.