public EmptyApplicationResponse updatePermissionsForUser(String appId,
String username, ApplicationPermissionRequest body)
throws ApiException {
// verify required params are set
if (appId == null || username == null || body == null) {
throw new ApiException(400, "missing required params");
}
// create path and map variables
String path = "/apps/" + Settings.API_VERSION + "/{appId}/pems/{username}"
.replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "appId" + "\\}",