Im trying to update an estimate using python and the request library. I made a PUT request to:
with the following payload:
- {
- "customer_id": "3408460000000075126",
- "date": "2023-05-18",
- "expiry_date": "2023-06-18",
- "description": "Test Subject",
- "line_items": [
- {
- "item_id": 3408460000000781429,
- "line_item_id": " ",
- "quantity": 1.0,
- "rate": 10,
- "name": "Chicken Wings",
- "item_total": 0,
- "unit": " ",
- }
- ]
- }
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:
Full Python Code:
Python codeHTTP ERROR:
Is there something wrong with my body?