---
title: "Update product option"
method: PUT
path: "/api/sites/multiscreen/{site_name}/ecommerce/options/{option_id}"
tags: ["Product options API"]
---

# Update product option

`PUT /api/sites/multiscreen/{site_name}/ecommerce/options/{option_id}`

## Request

- Base URL: `https://api.duda.co`
- URL: `https://api.duda.co/api/sites/multiscreen/{site_name}/ecommerce/options/{option_id}`
- Auth: HTTP basic

Change displayed name of product option

## Path parameters

- `site_name` string, required
- `option_id` string, required

## Request body

- UpdateProductOption: Request used to update product option
  - `choices` OptionChoiceRequest[], nullable: Option choices to create or update. New choices should have only 'value' (and optionally 'color'). Existing choices should have 'id' (identifier) to update value/color.
    - `color` string, nullable: CSS color value for color option choices (hex codes, rgb/rgba, hsl/hsla, or named colors like 'tomato'). Only used when the parent ProductOption type is COLOR.
    - `id` string, nullable: Choice identifier for updating existing choices. Omit for new choices.
    - `value` string, required: Displayed choice name
  - `name` string, nullable: Displayed option name
  - `type` 'TEXT' | 'COLOR', nullable: Product option type

## Response `200`

OK

- ProductOption: Model representing options that can be assigned to products to define variations
  - `choices` ProductOptionChoice[]: Allowed choices to select from
    - `color` string
    - `id` string: Immutable identifier for referencing
    - `value` string: Option choice value
  - `id` string: Immutable identifier for referencing
  - `name` string: Displayed option name
  - `type` 'TEXT' | 'COLOR', nullable: Product option type

## Other responses

- `400`: Non-OK response from the server
- `401`: Unauthorized request - missing or invalid credentials
- `429`: Rate limit exceeded - please refer to api documentation for limits

---

[API](https://skmtc.dev/duda/apis/duda-partner-api.md) - [All operations](https://skmtc.dev/duda/apis/duda-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/duda-partner-api/revisions/52be4d41cb12?raw)
