code | type | title |
---|---|---|
true |
page |
hdel |
Removes fields from a hash.
URL: http://kuzzle:7512/ms/_hdel/<_id>
Method: DELETE
Body:
{
"fields": ["field1", "field2", "..."]
}
{
"controller": "ms",
"action": "hdel",
"_id": "<key>",
"body": {
"fields": ["field1", "field2", "..."]
}
}
_id
: hash key identifier
fields
: an array of hash fields to delete
Returns the number of removed fields.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "hdel",
"collection": null,
"index": null,
"result": 3
}