Newer Version Available

This content describes an older version of this product. View Latest

Update List View Preferences

Update list view preferences.
Resource
1/ui-api/list-preferences/${objectApiName}/${listViewApiName}
  • objectApiName—A supported object, such as Account.
  • listViewApiName—The API name of a list view, such as AllAccounts.
Available version
61.0
HTTP methods
PATCH
Example
This example updates list preferences for the All Accounts list view.
1PATCH /services/data/v62.0/ui-api/list-preferences/Account/AllAccounts
1{
2"columnWidths" : {
3  "Name" : 200
4  },
5"columnWrap" : {
6  "Name" : false
7  },
8"orderedBy" : [{
9  "fieldApiName": "Name",
10  "isAscending" : true
11  }]
12}
Request parameters for PATCH
Parameter Name Type Description Required or Optional Available Version
listPreferencesInput List Preferences Input List preferences to update, Required 61.0
Response body for PATCH
List Preferences