Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 822 Bytes

File metadata and controls

75 lines (53 loc) · 822 Bytes
code type title
true
page
hdel

hdel

Removes fields from a hash.

[Redis documentation]


Query Syntax

HTTP

URL: http://kuzzle:7512/ms/_hdel/<_id>
Method: DELETE
Body:
{
  "fields": ["field1", "field2", "..."]
}

Other protocols

{
  "controller": "ms",
  "action": "hdel",
  "_id": "<key>",
  "body": {
    "fields": ["field1", "field2", "..."]
  }
}

Arguments

  • _id: hash key identifier

Body properties

  • fields: an array of hash fields to delete

Response

Returns the number of removed fields.

{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "hdel",
  "collection": null,
  "index": null,
  "result": 3
}