Path: / {BASE} / users / {login} / roles

Set the roles for the given account

Path parameters:
login - the account

Method Summary
ResourceDescription
POST /{BASE}/users/{login}/roles?role[]=…&role=…Set the roles for the given account

Method Detail
HTTP Example:
POST /{BASE}/users/{login}/roles?role[]=…&role=…

API Example:

UserManagementWebService.setUserRoles({'role[]': /* roles2 role[] params of the roles to set */,
  'role': /* roles role params of the roles to set */,
  'login': /* login the account */});

Set the roles for the given account

Output:
javax.ws.rs.core.Response - the {@link org.apache.marmotta.platform.user.webservices.UserWebService.AccountPoJo} of the account after update
Query parameters:
role[] - role[] params of the roles to set
role - role params of the roles to set
HTTP return codes:
404 - if no such account exists.