You are here

removeFavoriteSite

public Site removeFavoriteSite(Site site) - Removes the given site from the current user's list of favorite sites, if the request cannot be completed successfully an exception is thrown with error code 400.

Parameters

Site site
A site object representing the site to be removed from the user's favourites.

Returns

A new Site object reflecting the changes made.

Exception

Throws an SkyVaultServiceException if the operation cannot be carried out and has an error code of 400.

Example


  case REMOVE_FAVE:
  	site = siteService.removeFavoriteSite(site);
  	message = site.getShortName()+" removed from your favorites";
  	break;
        
      
Note: This method was added in version 1.1.