*/
public void unassignRole(String loginName, String role) throws BssException {
try {
String serviceUrl = BssUrls.API_AUTHORIZATION_UNASSIGNROLE.format(this,
new NamedUrlPart("loginName", loginName), new NamedUrlPart("role", role));
Response response = createData(serviceUrl, null, null);
// expect a 204
int statusCode = response.getResponse().getStatusLine().getStatusCode();
if (statusCode != 204) {
throw new BssException(response, "Error unassigning role {0} to {1}", role, loginName);
}
} catch (Exception e) {
throw new BssException(e, "Error unassigning role {0} to {1} caused by {2}", role, loginName, e.getMessage());