Ampersand · JSON Structure

Ampersand Api Json Patch Operation Structure

Represents a single JSON Patch operation (RFC 6902). Only supports add, remove, and replace operations for config updates.

Type: object Properties: 3 Required: 2
Developer ToolsIntegrationsPlatformSaaSOAuthData SyncWebhooks

JSONPatchOperation is a JSON Structure definition published by Ampersand, describing 3 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

op path value

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ampersand/refs/heads/main/json-structure/ampersand-api-json-patch-operation-structure.json",
  "name": "JSONPatchOperation",
  "description": "Represents a single JSON Patch operation (RFC 6902).\nOnly supports add, remove, and replace operations for config updates.\n",
  "type": "object",
  "properties": {
    "op": {
      "type": "string",
      "enum": [
        "add",
        "remove",
        "replace"
      ],
      "description": "The operation to perform.\n- \"add\": Adds a new field or replaces an existing one at the specified path\n- \"remove\": Removes the field at the specified path\n- \"replace\": Replaces the value at the specified path\n",
      "example": "replace"
    },
    "path": {
      "type": "string",
      "description": "JSON Pointer path to the field to operate on (RFC 6901).\nAll paths must start with \"/\" (e.g., \"/schedule\", \"/selectedFields/phone\").\n",
      "example": "/schedule"
    },
    "value": {
      "description": "The value to set for add/replace operations.\nNot used for remove operations.\n",
      "example": "*/10 * * * *"
    }
  },
  "required": [
    "op",
    "path"
  ]
}