Commit 0d034286 authored by Pablo Panero's avatar Pablo Panero
Browse files

Add PATCH (partial updates) documentation

parent aaf600be
......@@ -163,6 +163,19 @@ curl -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json' \
Documents can also be updated partially. To perform this action we need to do a *PATCH*. The endpoint accepts
application/json+patch as Content-Type. An example to update the description would be:
curl -k -X PATCH -H 'Content-Type: application/json-patch+json' -H 'Accept: application/json' \
-i '' --data '
{"op": "replace", "path": "/metadata/description", "value": "Description changed with patch partial update"}
More about the options of json+patch can be found [here](
### Delete documents
To delete a document we need to perform a *DELETE* operation. For this we simply need to specify the document _ID_ by
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment