Optimizely · Schema

PatchRequestBody

A JSONPatch document as defined by RFC 6902

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
from string A JSON Pointer to the resource attribute
op string The operation to be performed
path string A JSON-Pointer to the resource or the resource attribute
value object The value to be used within the operations.
View JSON Schema on GitHub

JSON Schema

optimizely-patch-request-body-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-patch-request-body-schema.json",
  "title": "PatchRequestBody",
  "description": "A JSONPatch document as defined by RFC 6902",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-flags-api-openapi.yml#/components/schemas/PatchRequestBody",
  "properties": {
    "from": {
      "description": "A JSON Pointer to the resource attribute",
      "type": "string"
    },
    "op": {
      "description": "The operation to be performed",
      "enum": [
        "add",
        "remove",
        "replace",
        "move",
        "copy",
        "test"
      ],
      "type": "string"
    },
    "path": {
      "description": "A JSON-Pointer to the resource or the resource attribute",
      "type": "string"
    },
    "value": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "$ref": "#/$defs/AudienceConditions"
        },
        {
          "type": "string"
        },
        {
          "type": "integer"
        },
        {
          "type": "boolean"
        },
        {
          "items": {
            "$ref": "#/$defs/SubMetric"
          },
          "type": "array"
        }
      ],
      "description": "The value to be used within the operations."
    }
  },
  "required": [
    "op",
    "path"
  ],
  "type": "object",
  "$defs": {
    "AudienceConditions": {
      "description": "An Audience Combination composed of other audiences. Each audience is a rule like 'User likes salads', and an Audience Combination is a Boolean combination of these rules, like 'User likes pizza NOT (User likes salads AND User likes soup)'.",
      "oneOf": [
        {
          "$ref": "#/$defs/AudienceConditionsArray"
        },
        {
          "$ref": "#/$defs/AudienceConditionsString"
        }
      ]
    },
    "AudienceConditionsArray": {
      "items": {
        "anyOf": [
          {
            "description": "The logical operator to use (e.g. \"and\", \"or\", or \"not\"). This must be the first item in the audience_conditions array. The \"not\" operator may only be used in conjunction with a single condition or list.",
            "type": "string"
          },
          {
            "description": "An invidual conditional, consisting of a JSON object with an \"audience_id\" value.",
            "properties": {
              "audience_id": {
                "type": "integer"
              }
            },
            "required": [
              "audience_id"
            ],
            "type": "object"
          },
          {
            "$ref": "#/$defs/AudienceConditionsArray",
            "description": "A nested AudienceConditionsArray"
          }
        ]
      },
      "type": "array"
    },
    "AudienceConditionsString": {
      "description": "A valid AudienceConditionsArray represented as a JSON string",
      "type": "string"
    },
    "SubMetric": {
      "properties": {
        "aggregator": {
          "type": "string"
        },
        "event_id": {
          "type": "integer"
        },
        "event_type": {
          "type": "string"
        },
        "field": {
          "type": [
            "string",
            "null"
          ]
        },
        "role": {
          "enum": [
            "numerator",
            "denominator"
          ],
          "type": "string"
        },
        "scope": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}

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-patch-request-body"
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.