Core
API v2.x
2

mDeleteRoles #

Deletes multiple security roles.


Query Syntax #

HTTP #

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

Other protocols #

{
  "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 (default: "wait_for")

Body properties #

  • ids: an array of role identifiers to delete

Response #

Returns an array of successfully deleted roles.

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