Skip to main content

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:write

Grant 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​

OK

Response Headers
    Content-Type