Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

mDeleteRoles #

Deletes multiple security roles.


Query Syntax #

HTTP #

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

Other protocols #

Copied to clipboard!
{
  "controller": "security",
  "action": "mDeleteRoles",
  "body": {
    "ids": ["role1", "role2", "..."]
  }
}

Arguments #

Optional: #

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

Body properties #

  • ids: an array of role identifiers to delete

Response #

Returns an array of successfully deleted roles.

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