action openpolicy_patch_document { label: "Update a document" description: "This API endpoint updates an existing document on the server by describing the changes required (using [JSON patch operations](http://jsonpatch.com/))" provider: openpolicy method: PATCH path: "/v1/data/{path}" encoding: json input: { type: "array" description: "A list of one or more [JSON patch operations](http://jsonpatch.com/)" items: { type: "object" description: "A JSON patch operation" required: ["op", "path"] properties: { op: { type: "string" description: "JSON patch operation type" enum: ["add", "remove", "replace", "move", "copy", "test"] } path: { type: "string" description: "A [JSON pointer](https://tools.ietf.org/html/rfc6901) to a location within the target document where the operation is performed.\n\nThe *effective path* is this value prefixed with the API call's `path` parameter.\n\nThe server will return a *bad request* (404) response if:\n\n- The *parent* of the effective path does not refer to an existing document\n- For **remove** and **replace** operations, the effective path does not refer to an existing document." } value: { type: "object" description: "The value to add, replace or test." } } } } output: { type: "object" additionalProperties: true } }