Update Repair Cost
PUT/api/repairs/:repair/costs/:cost
Edits a cost line. Send only the fields to change.
repairs:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Fields (all optional):
description(string, max 255).quantity(number, > 0, max 100000).unit_cost(number, ≥ 0).bill_price(number or null, ≥ 0).bill_to(string) —warranty,goodwill,customer,supplier. On a posted line this reclasses the journal andreasonis required.reason(string, max 500) — why the bill-to changed; logged on the repair.
Posted (consumed) lines can only be changed by users with the "Repairs: manage costs" permission (403 otherwise). On a consumed part only the description and bill price can change; un-consume it to change quantity or cost. Posted lines dated inside a locked accounting period are refused with 422.
Authentication: Bearer token with the repairs: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
Response Headers
Not Found
Response Headers
Unprocessable Entity
Response Headers
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.