Figured out the solution.
identify the id of the custom property and build a path like below.
and to update or add or delete the value of a Custom Property
read the response and assign it to a variable and then do push or pop or use any method to modify the array. I have used push in here..
and send the entire response back using the PUT action.