---
title: "Update purchased component"
method: PATCH
path: "/suppliers/public/purchased_components/{purchasedComponentId}"
tags: ["Purchased Components"]
---

# Update purchased component

`PATCH /suppliers/public/purchased_components/{purchasedComponentId}`

## Request

- Base URL: `https://api.paperlessparts.com/v1`
- URL: `https://api.paperlessparts.com/v1/suppliers/public/purchased_components/{purchasedComponentId}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/paperlessparts/apis/paperless-parts-api/docs/suppliers/public/purchased_components/:purchasedComponentId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update a purchased component

## Path parameters

- `purchasedComponentId` integer, required

## Request body

- PatchPurchasedComponent
  - `oem_part_number` string: Unique identifier for purchased component within a supplier account
  - `internal_part_number` string, nullable
  - `description` string, nullable
  - `piece_price` number: Cost per piece to 4 decimal places
  - `properties` PurchasedComponentCustomProperty[]
    - `key` string: Name of corresponding purchased component column in table display
    - `value` union: Value of property, None or of type corresponding to value_type
      - string
      - number
      - boolean

## Response `200`

Successful Response

- PurchasedComponent[]
  - `oem_part_number` string: Unique identifier for purchased component within a supplier account
  - `internal_part_number` string, nullable
  - `description` string, nullable
  - `piece_price` number: Cost per piece to 4 decimal places
  - `id` integer
  - `properties` PurchasedComponentCustomProperty[]
    - `key` string: Name of corresponding purchased component column in table display
    - `value` union: Value of property, None or of type corresponding to value_type
      - string
      - number
      - boolean
  - `thumbnail_url` string, nullable

## Other responses

- `404`: Not found response

---

[API](https://skmtc.dev/paperlessparts/apis/paperless-parts-api.md) - [All operations](https://skmtc.dev/paperlessparts/apis/paperless-parts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paperlessparts/apis/paperless-parts-api/revisions/3eb132ead1fe?raw)
