We will be re-using the sample code to get a web profile. GetWebProfile.php will create a new web profileId for sample, and return the web profile object.
APIs allows us to pass an array of patches to make patch operations. Each Patch operation can be created by using Patch Class as shown below
The operation to perform. Required. Allowed values: add, remove, replace, move, copy, test
string containing a JSON-Pointer value that references a location within the target document (the target location) where the operation is performed. Required.
New value to apply based on the operation.
Similar patch operation to remove the landing page type
Execute the partial update, to carry out these two operations on a given web profile object
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
Partially Update Web Profile
Use this call to partially update a web experience profile. Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#partially-update-a-web-experience-profile