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.
{
"$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"
]
}
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.