Core
API v2.x
2

mDeleteProfiles #

Deletes multiple security profiles.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/profiles/_mDelete[?refresh=wait_for]
Method: POST
Body:
Copied to clipboard!
{
  "ids": ["profile1", "profile2", "..."]
}

Other protocols #

Copied to clipboard!
{
  "controller": "security",
  "action": "mDeleteProfiles",
  "body": {
    "ids": ["profile1", "profile2", "..."]
  }
}

Arguments #

Optional: #

  • refresh: if set to wait_for, Kuzzle will not respond until the deletions are indexed (default: "wait_for")

Body properties #

  • ids: an array of profile identifiers to delete

Response #

Returns an array of successfully deleted profiles.

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "action": "mDeleteProfiles",
  "controller": "security",
  "requestId": "<unique request identifier>",
  "result": [
    "profile1",
    "profile2",
    "..."
  ]
}