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 towait_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.
{
"status": 200,
"error": null,
"action": "mDeleteRoles",
"controller": "security",
"requestId": "<unique request identifier>",
"result": [
"role1",
"role2",
"..."
]
}
Edit this page on Github(opens new window)