Update Part on Unit
PUT/api/repairs/:repair/lines/:line/parts/:part
Edits a part line on a unit. Send only the fields to change.
Required scope:
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) — planned parts only.unit_cost(number, ≥ 0) — planned parts only.bill_price(number or null, ≥ 0).bill_to(string) —warranty,goodwill,customer,supplier. On a consumed part this reclasses the posting and needs the "Repairs: manage costs" permission.reason(string, max 500) — logged with a bill-to change.
A consumed part's quantity and cost are locked; un-consume it first.
Authentication: Bearer token with the repairs:write scope.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Content-Type
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Content-Type
Not Found
Response Headers
Content-Type
Unprocessable Entity
Response Headers
Content-Type
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.