curl -X DELETE "http://localhost:8080/items" \
-H "Content-Type: application/json" \
-d '{"ids": ["item-1", "item-2"]}'
{
"status": "success",
"deleted": 1,
"not_found_ids": ["item-2"]
}
Delete
Delete items
Delete items by id.
DELETE
/
items
curl -X DELETE "http://localhost:8080/items" \
-H "Content-Type: application/json" \
-d '{"ids": ["item-1", "item-2"]}'
{
"status": "success",
"deleted": 1,
"not_found_ids": ["item-2"]
}
Overview
Remove one or more items by id. Store mode and dimension are unchanged.array
required
Non-empty array of item id strings.
curl -X DELETE "http://localhost:8080/items" \
-H "Content-Type: application/json" \
-d '{"ids": ["item-1", "item-2"]}'
{
"status": "success",
"deleted": 1,
"not_found_ids": ["item-2"]
}
Related
Was this page helpful?