---
title: "Add an option to a product"
method: POST
path: "/api/v1/products/{id}/options"
tags: ["ProductOptions"]
---

# Add an option to a product

`POST /api/v1/products/{id}/options`

Option items must be added separately <br />
            Type must be one of TEXT, TEXTAREA, DROPDOWN or IMAGE

## Path parameters

- `id` integer, required — The product ID

## Request body

- V1AddProductOption
  - `id` integer
  - `product_id` integer
  - `name` string, required
  - `is_required` boolean
  - `type` string, required
  - `size` integer, required

## Response `200`

The added option

- TempestResponseV1ProductOption
  - `meta` object, nullable
  - `links` TempestLink[], nullable
    - `rel` string, nullable
    - `href` string, nullable
  - `validation_result` TempestValidationError[], nullable
    - `member_names` string[], nullable
    - `error_message` string, nullable
  - `errors` object, nullable
  - `data` V1ProductOption
    - `id` integer
    - `product_id` integer
    - `name` string, required
    - `is_required` boolean
    - `type` string, required
    - `size` integer, required
    - `option_items` V1ProductOptionItem[], nullable
      - `id` integer
      - `product_option_id` integer
      - `name` string, required
      - `price` number, double
      - `is_placeholder` boolean

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — No product found

---

[API](https://skmtc.dev/ekm/apis/ekm-partner-api.md) · [All operations](https://skmtc.dev/ekm/apis/ekm-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ekm/ekm-partner-api/revisions/853bef073bb3/schema)
