Optimizely · Schema

CampaignFieldUpdateRequest

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing
View JSON Schema on GitHub

JSON Schema

optimizely-campaign-field-update-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-campaign-field-update-request-schema.json",
  "title": "CampaignFieldUpdateRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-campaigns-api-openapi.yml#/components/schemas/CampaignFieldUpdateRequest",
  "type": "object",
  "additionalProperties": false,
  "oneOf": [
    {
      "$ref": "#/$defs/StringTypeObjectFieldUpdatePayload"
    },
    {
      "$ref": "#/$defs/MultiChoiceTypeObjectFieldUpdatePayload"
    },
    {
      "$ref": "#/$defs/DropdownTypeObjectFieldUpdatePayload"
    },
    {
      "$ref": "#/$defs/RadioButtonTypeObjectFieldUpdatePayload"
    },
    {
      "$ref": "#/$defs/NumberTypeObjectFieldUpdatePayload"
    },
    {
      "$ref": "#/$defs/DateTypeObjectFieldUpdatePayload"
    },
    {
      "$ref": "#/$defs/AssetTypeObjectFieldUpdatePayload"
    }
  ],
  "$defs": {
    "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"
                ]
              }
            }
          }
        }
      ]
    },
    "BaseObjectFieldUpdatePayload": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of the field"
        },
        "values": {
          "type": "array",
          "description": "Values for the campaign field"
        }
      },
      "required": [
        "type",
        "values"
      ]
    },
    "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
            }
          }
        }
      ]
    },
    "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"
              }
            }
          }
        }
      ]
    },
    "MultiChoiceTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Array of choice IDs",
              "items": {
                "type": "string"
              }
            }
          }
        }
      ]
    },
    "NumberTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Accepts a single numeric value",
              "maxItems": 1,
              "items": {
                "type": "number"
              }
            }
          }
        }
      ]
    },
    "RadioButtonTypeObjectFieldUpdatePayload": {
      "allOf": [
        {
          "$ref": "#/$defs/BaseObjectFieldUpdatePayload"
        },
        {
          "type": "object",
          "properties": {
            "values": {
              "type": "array",
              "description": "Accepts a single choice Id.",
              "maxItems": 1,
              "items": {
                "type": "string"
              }
            }
          }
        }
      ]
    },
    "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-campaign-field-update-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.