Patch Documents

PATCH {{baseUrl}}/v1/orgs/self/ws/:workspace/collections/:collection/docs

Update existing documents in a collection.

Request Body

{"data"=>[{"_id"=>"ca2d6832-1bfd-f88f-0620-d2aa27a5d86c", "patch"=>[{"op"=>"INCREMENT", "path"=>"/foo/bar", "value"=>{}, "from"=>"non tempor amet"}, {"op"=>"REMOVE", "path"=>"/foo/bar", "value"=>{}, "from"=>"in sint fugi"}]}, {"_id"=>"ca2d6832-1bfd-f88f-0620-d2aa27a5d86c", "patch"=>[{"op"=>"MOVE", "path"=>"/foo/bar", "value"=>{}, "from"=>"Lorem aliqua"}, {"op"=>"TEST", "path"=>"/foo/bar", "value"=>{}, "from"=>"ullamco eiusmod"}]}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"data":[{"_collection":"customers","error":{"message":"collection not found","type":"RESOURCEEXCEEDED","line":78748212,"column":-43800131,"trace_id":"quis velit incididunt culpa","error_id":"ut incididunt"},"_id":"2cd61e3b","status":"ADDED","patch_id":"486gsg8"},{"_collection":"customers","error":{"message":"collection not found","type":"RATELIMITEXCEEDED","line":66462599,"column":64657860,"trace_id":"Excepteur sunt reprehe","error_id":"esse ullamco"},"_id":"2cd61e3b","status":"ADDED","patch_id":"486gsg8"}]}