PATCH works the same way.id does not return 404: a new line is added to the order instead.{
"maintenance_type_id": 2,
"amount_of_parts": 80,
"amount_of_labor": 40
}data.order, as loaded before the change, and the line in data.line. Get the order again to read its current amount_of_parts and amount_of_labor. HTTP 200 is also used for failures: always check success. When it is false, the body is an ErrorUnauthorized (status_code 401 or 403).{"success":true,"status_code":200,"errors":[],"data":{"order":{"id":214,"vehicle_id":57,"maintenance_type_id":null,"status":"pending"},"line":{"id":903,"repair_order_id":214,"maintenance_type_id":2,"amount_of_parts":80,"amount_of_labor":40,"created_at":"2026-10-06T13:05:44.000000Z","updated_at":"2026-10-06T13:05:44.000000Z"}}}