Update a product option value

Updates an existing product option value.

put/products/{product_id}/option-values/{id}

Request

  • Base URL
    https://api.ecommerceapi.uk/v1
  • URL
    https://api.ecommerceapi.uk/v1/products/{product_id}/option-values/{id}
  • Auth
    HTTP basic

Path parameters

product_idinteger required

ID of the product which the option value is assigned to.

idinteger required

ID of the product option value to update.

Request body

namestring

The updated name of the product option value.

sortOrderinteger

Optional sort order of the product option value. Values with a lower number appear first.

Response

Product option value updated successfully.

idinteger

Unique identifier for the product option value.

namestring

The name of the product option value.

optioninteger

The ID of the product option that this value is assigned to.

sortOrderinteger

The sort order of the product option value. Values with a lower number appear first.

Changes

No recorded changes to this operation across all 1 revision of this API.