---
schema_version: "1"
id: adb7b5d868c902545b5f8569ee742bf0155294b119109130dce7bc141c631372
title: Favorite Batch Collection Input
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_requests_favorite_batch_collection_input.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_favorite_batch_collection_input.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d87fbfd2ae07e434d3c3d83d8538b8ce856dd662aad5d3dc37390dfe3b8037d4
description: A collection of all the favorites in a batch. Pass this request body to update a batch of favorites.
---
# Favorite Batch Collection Input

A collection of all the favorites in a batch. Pass this request body to update a batch of favorites.

JSON example

{
  favorites: \[
  {
    id: "0MVR00000004DhnOAE",
    name: "Q4 Perf"
  }, { 
    id: "0MVR00000004DhsOAE"
  }, {
    id: "0MVR00000004DiGOAU"
  }, {
    id: "0MVR000000001e2OAA",
    name: "Office Group"
  }, {
    id: "0MVR00000004GGlOAM"
  }}\]
}

Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| favorites | [Favorite Batch Input](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_favorite_batch_input.htm#ui_api_requests_favorite_batch_input "Represents a single favorite when updating favorites in batch.")\[\] | The list of favorites to keep and update. | Required | 41.0 |

#### See Also

- [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.")