Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 488 Bytes

delete_-_by_index.md

File metadata and controls

36 lines (26 loc) · 488 Bytes

Delete - by index

Curl example:

curl -X POST "https://example.com/v1/collections/my-collection:remove" \
-d '{
    "index": "my-index",
    "value": "2"
}'

HTTP request/response example:

POST /v1/collections/my-collection:remove HTTP/1.1
Host: example.com

{
    "index": "my-index",
    "value": "2"
}

HTTP/1.1 200 OK
Content-Length: 28
Content-Type: text/plain; charset=utf-8
Date: Mon, 15 Aug 2022 02:08:13 GMT

{
    "id": "2",
    "name": "Gerardo"
}