---
title: "Create Component"
method: POST
path: "/api/private-components/"
tags: ["Private Components"]
---

# Create Component

`POST /api/private-components/`

## 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/`
- Auth: HTTP bearer

Create a private component.

## Query parameters

- `owner_type` string
- `owner_id` string, nullable

## Request body

- PrivateComponentCreate: Request body for creating a private component.
  - `part_number` string, required
  - `manufacturer` string, nullable
  - `function` string, required
  - `frequency_range` number[]
  - `component_data` object
  - `status` string
  - `notes` string, nullable
  - `tags` string[]
  - `derating_rules` object, nullable
  - `datasheet_url` string, nullable

## Response `201`

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)
