---
schema_version: "1"
id: fee809999f5af52061c560de83a153a20c35ef239d7e612b0d802ed620485d3f
title: Favorites
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_resources_favorites.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c37ccfab124164b784f57180036ca30453b74dd9713b0e083dd9732aaf50e1b3
description: Use these resources to create and update a single favorite or a collection of favorites, and to get favorites usage information. These resources make it easy to build UI for favorites.
---
# Favorites

Use these resources to create and update a single favorite or a collection of favorites, and to get favorites usage information. These resources make it easy to build UI for favorites.

- **[Create a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_create.htm)**  
    Create a favorite.
- **[Get a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorite_get.htm)**  
    Get a favorite.
- **[Get Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_get.htm)**  
    Get all of a user’s favorites.
- **[Update a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorite_update.htm)**  
    Update a favorite.
- **[Update a Batch of Favorites](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_batch_update.htm)**  
    Update all favorites at once. The sort order is updated to the given relative ordering. Any favorites missing from the request body are deleted.
- **[Delete a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorite_delete.htm)**  
    Delete a favorite.
- **[Update Usage of a Favorite](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_favorites_usage_update.htm)**  
    Update the usage of an individual favorite. Increments the accessCount and sets the lastAccessDate to the current system time.