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

Set the roles for the given account

Path parameters:
login - the account

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

Method Detail

POST /{BASE}/users/{login}/roles

Set the roles for the given account

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

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

Output:
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.