code: public void updateOrder(int spaceId, List<Integer> appIds) {
  		getResourceFactory().getApiResource("/app/space/" + spaceId + "/order")
  				.entity(appIds, MediaType.APPLICATION_JSON_TYPE).put();
  	}
docs: Updates the order of the apps on the space. It should post all the apps
  from the space in the order required.
  
  @param spaceId
  The id of the space the apps are on
  @param appIds
  The ids of the apps in the new order