curl --location --request PUT 'https://api.stateset.com/v1/cogs_entries/123' \ --header 'Content-Type: application/json' \ --header 'Authorization: Token <token>' \ --data-raw '{ "quantity_sold": 150, "cogs": 7500, "average_cost": 50, "ending_inventory_quantity": 450, "ending_inventory_value": 22500, "gross_sales": 11250 }'
{ "id": 123, "message": "<string>" }
This endpoint updates an existing COGS (Cost of Goods Sold) entry.