updatePersonalization(listID, personalizationID, personalizedState)
Updates a personalization instance of a list component.
Returns
The status as a Promise.
Parameters
Name | Type | Description | Required |
listID | string | A unique ID referencing a list component. | ✅ |
personalizationID | string | A unique ID that references the personalization instance to be updated. | ✅ |
personalizedState | object | An object containing information about the personalization state. | ✅ |
Usage example
In this example, the API updates a personalization instance of a list component and returns the status.
const listId = "443533r555";
const personalizationId = "L_343456";
const personalizedState = {
name : "Resolved bugs",
markAsDefault : false,
personalizationState : "{ filter : 'pyStatusWork STARTS_WITH Resolved'}"
};
PCore.getPersonalizationUtils(listId).updatePersonalization(personalizationId, personalizedState);
Previous topic fetchPersonalizations(listID) Next topic APIs in the PubSubUtils class