---
title: "Create Product"
method: POST
path: "/v1/parts/"
tags: ["Parts"]
---

# Create Product

`POST /v1/parts/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/v1/parts/`
- Auth: none declared

## Request body

- ProductCreate
  - `name` string, required
  - `spec` string, nullable
  - `price` number, nullable
  - `url` string, nullable
  - `lat` number, nullable
  - `lon` number, nullable
  - `description` string, nullable
  - `store_id` integer, nullable

## Response `201`

Successful Response

- ProductRead
  - `name` string, required
  - `spec` string, nullable
  - `price` number, nullable
  - `url` string, nullable
  - `lat` number, nullable
  - `lon` number, nullable
  - `description` string, nullable
  - `store_id` integer, nullable
  - `id` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/rubenayla/apis/partle-api.md) · [All operations](https://skmtc.dev/rubenayla/apis/partle-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rubenayla/apis/partle-api/revisions/628cce2acee5?raw)
