code: public void updatePrivate(int taskId, boolean priv) {
  		getResourceFactory().getApiResource("/task/" + taskId + "/private")
  				.entity(new TaskPrivate(priv), MediaType.APPLICATION_JSON_TYPE)
  				.put();
  	}
docs: Update the private flag on the given task.
  
  @param taskId
  The id of the task
  @param priv
  <code>true</code> if the task should be private,
  <code>false</code> otherwise