# Create SKUs (https://docs.pulsarml.com/v1/api-reference/skus/post-skus)

Create one or many SKUs. The body is a JSON **array**, even for a single record.

Only `sku` (the product code) is required; `unit` defaults to `units` and `archived` to
`false`.

## `POST /v1/skus`

Base URLs:
- `https://draco.prod.pulsarml.com` — Production
- `https://draco.dev.pulsarml.com` — Development (sandbox)

Authentication: send your API key in the `x-api-key` header.

### Request body (`application/json`, required)

Type: array of object

- `sku` (string, required) — The code of the sku.
- `name` (string, optional, nullable) — The name of the sku.
- `description` (string, optional, nullable) — The description of the sku.
- `unit` (string, optional, nullable, default `"units"`) — The unit of the sku.
- `archived` (boolean, optional, nullable, default `false`) — The archived status of the sku.

### Responses

#### 200 — The SKUs that were created

Type: array of object

- `id` (string (uuid4), required, e.g. `"36f7b519-d93e-4ec8-8245-7f4b8c123456"`) — The unique identifier for the sku.
- `company` (object, required) — The company associated with the sku.
  - `id` (integer, required, e.g. `1`) — The unique identifier for the company.
  - `name` (string, required, e.g. `"company 1"`) — The name of the company.
- `sku` (string, required, e.g. `"sku 1"`) — The sku code of the sku.
- `name` (string, required, nullable, e.g. `"sku 1"`) — The name of the sku.
- `description` (string, required, nullable, e.g. `"sku 1"`) — The description of the sku.
- `unit` (string, required, nullable, e.g. `"pcs"`) — The unit of the sku.
- `archived` (boolean, required, e.g. `false`) — The archived status of the sku.
- `createdAt` (string (date-time), required, e.g. `"2024-01-01T00:00:00.000Z"`) — The timestamp when the sku was created.
- `updatedAt` (string (date-time), required, e.g. `"2024-01-01T00:00:00.000Z"`) — The timestamp when the sku was last updated.
- `deletedAt` (string (date-time), optional, nullable, e.g. `"2024-01-02T00:00:00.000Z"`) — The timestamp when the sku was deleted, if applicable.

#### 422 — Validation Error

Type: object (`HTTPValidationError`)

- `detail` (array of object, optional)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)

### Example request

```bash
curl -X POST 'https://draco.prod.pulsarml.com/v1/skus' \
  -H 'x-api-key: <YOUR_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "sku": "string"
    }
  ]'
```