26 lines
850 B
Text
26 lines
850 B
Text
[[role-management-api-delete]]
|
|
=== Delete role
|
|
|
|
experimental[This API is experimental and may be changed or removed completely in a future release. Although the underlying mechanism of enforcing role-based access control is stable, the APIs for managing the roles are currently experimental.]
|
|
|
|
Note: You cannot access this endpoint via the Console in Kibana.
|
|
|
|
==== Authorization
|
|
|
|
To use this API, you must have at least the `manage_security` cluster privilege.
|
|
|
|
==== Request
|
|
|
|
To delete a role, submit a DELETE request to the `/api/security/role/<rolename>`
|
|
endpoint:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
DELETE /api/security/role/my_admin_role
|
|
--------------------------------------------------
|
|
// KIBANA
|
|
|
|
==== Response
|
|
|
|
If the role is successfully deleted, the response code is `204`; otherwise, the response
|
|
code is 404.
|