Update Repair Unit
PUT/api/repairs/:repair/lines/:line
Update Repair Unit.
repairs:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Request fields:
product_id(optional): integer, exists:products,idquantity(optional): integer, min:1, max:100000sales_order_line_id(optional): integer, exists:sales_order_lines,idserial_number_id(optional): integer, exists:serial_numbers,idlot_number(optional): string, max:100warranty_registration_id(optional): integer, exists:warranty_registrations,idcustomer_description(optional): string, max:5000diagnosis_notes(optional): string, max:20000root_cause(optional): Enum:in:"manufacturing_defect","wear_and_tear","accidental_damage","misuse","shipping_damage","no_fault_found","unknown"fault_attribution(optional): Enum:in:"supplier","brand_process","carrier","customer","none"technician_user_id(optional): integercustody_warehouse_location_id(optional): integer, exists:warehouse_locations,idtarget_product_id(optional): integer, exists:products,idissue_type_ids(optional): arrayissue_type_ids.*(optional): integer, exists:repair_issue_types,idfound_issue_type_ids(optional): arrayfound_issue_type_ids.*(optional): integer, exists:repair_issue_types,idrequested_service(optional): Enum:in:"repair","replate","replace"performed_service(optional): Enum:in:"repair","replate","replace","parts","credit","none"component_product_id(optional): integer, exists:products,idcustomer_product_text(optional): string, max:255needs_product_match(optional): boolean
Permission: repairs.update|repairs.bench.
Authentication: Bearer token with the repairs:read / write scope.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.