Deletes a role
Deletes a role. May return 403 in the future
DELETE
/api/2/role/{id}Authorization
AuthorizationBasic auth · headerrequiredIn order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.
Path parameters
idinteger<int64>requiredThe role id
Query parameters
swapinteger<int64>If given, removes a role even if it is used in scheme by replacing the role with the given one
Responses
204
Returned if the delete was successful.
400
Returned if given role with given swap id does not exist.
401
Returned if the requesting user is not logged in.
403
Returned if the requesting user is not an admin or a sysadmin.
404
Returned if the role with the given id does not exist.
409
Returned if the project role is used in schemes and roleToSwap query parameter is not given.