---
title: "Update Component"
method: PATCH
path: "/api/private-components/{component_id}"
tags: ["Private Components"]
---

# Update Component

`PATCH /api/private-components/{component_id}`

## Request

- Base URL: `https://api.pcbgenerator.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pcbgenerator.com/api/private-components/{component_id}`
- Auth: HTTP bearer

Update a private component.

## Path parameters

- `component_id` string, required

## Request body

- PrivateComponentUpdate: Request body for updating a private component (all fields optional).
  - `part_number` string, nullable
  - `manufacturer` string, nullable
  - `function` string, nullable
  - `frequency_range` number[], nullable
  - `component_data` object, nullable
  - `status` string, nullable
  - `notes` string, nullable
  - `tags` string[], nullable
  - `derating_rules` object, nullable
  - `datasheet_url` string, nullable

## Response `200`

Successful Response

- PrivateComponentResponse: Response model for a private component.
  - `id` string, required
  - `owner_type` string, required
  - `owner_id` string, required
  - `part_number` string, required
  - `manufacturer` string, nullable
  - `function` string, required
  - `frequency_range` number[]
  - `component_data` object
  - `status` string, required
  - `notes` string, nullable
  - `tags` string[]
  - `derating_rules` object, nullable
  - `datasheet_url` string, nullable
  - `created_by` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api.md) · [All operations](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/revisions/b6084b3ace32?raw)
