Needs to update the sales order record by deleting the existing product details and add new product

Needs to update the sales order record by deleting the existing product details and add new product

Hi there,

I am using ZOHO CRM API for creating and updating records. Now, I have created a sale order record with one product on product details section.

Now, I needs to update the sales order record by deleting the existing product from product details section and add a new product on this record.

Is this possible?

If I try to update the sales order record with new product details by using <product no="1"> tag , it will add the new product as second product rather than overriding the first product. I wants to override the first product with new product. 

Anyone can help me with this, please?


Thanks in advance.