{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/emporix/main/json-schema/emporix-patch-operation-schema.json",
  "title": "PatchOperation",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-customer-segments-openapi.yml#/components/schemas/PatchOperation",
  "type": "object",
  "properties": {
    "op": {
      "type": "string",
      "enum": [
        "add",
        "remove",
        "replace"
      ],
      "description": "Indicates an operation which should be done on a return. Available operations: `add` `remove` and `replace`"
    },
    "path": {
      "type": "string",
      "description": "Indicates a path for which the value should be applied. For example:`/mixins/additionalAttributes/externalId`, `/name`, `/status`"
    },
    "value": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ],
      "description": "Indicates a value that should be changed or added. The value can be of a primitive type, like string, number, boolean or it can be an object or an array."
    }
  },
  "required": [
    "op",
    "path"
  ]
}