This API endpoint updates an existing document on the server by describing the changes required (using )
643 matches
14 actions
Open Policy Agent (OPA) REST
14 actions
- CompilePOSTv1.0.0
- Create or overwrite a documentPUTv1.0.0
- Create or update a policy modulePUTv1.0.0
- Delete a documentDELETEv1.0.0
- Delete a policy moduleDELETEv1.0.0
- Execute a simple queryPOSTv1.0.0
- Execute an ad-hoc query (complex)POSTv1.0.0
- Execute an ad-hoc query (simple)GETv1.0.0
- Get a documentGETv1.0.0
- Get a document (with input)POSTv1.0.0
- Get a policy moduleGETv1.0.0
- Get configurationsGETv1.0.0
- List policiesGETv1.0.0
- Update a documentPATCHv1.0.0
Other/Open Policy Agent (OPA) REST
Update a document
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
{
"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
- 1
- 2
- 3
- 4
{
"type": "object",
"additionalProperties": true
}