Zoho Books Update Estimate API Error 400

Zoho Books Update Estimate API Error 400

Im trying to update an estimate using python and the request library. I made a PUT request to:
  1. PUT https://www.zohoapis.com/books/v3/estimates/{estimate_id}?organization_id={id}
with the following payload:
  1. {
  2. "customer_id": "3408460000000075126", 
  3. "date": "2023-05-18",
  4. "expiry_date": "2023-06-18",
  5. "description": "Test Subject",
  6. "line_items": [
  7.     {
  8.         "item_id": 3408460000000781429,
  9.         "line_item_id": " ",
  10.         "quantity": 1.0,
  11.         "rate": 10,
  12.         "name": "Chicken Wings",
  13.         "item_total": 0,
  14.         "unit": " ",
  15.     }
  16. ]
  17. }
I also tried to add the custom_fields field in the payload since the documentation stated it was required for the PUT method but im still getting the following error:
  1. 400 Client Error:  for url: https://www.zohoapis.com/books/v3/estimates/3408460000000789009?organization_id=xxxxx


Full Python Code:
Python code
HTTP ERROR:


Is there something wrong with my body?