Update a product option

Updates an existing product option.

put/products/{product_id}/options/{id}

Request

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

Path parameters

product_idinteger required

ID of the product which the option is assigned to.

idinteger required

ID of the product option to update.

Request body

namestring

The updated name of the product option.

sortOrderinteger

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

Response

Product option updated successfully.

idinteger

Unique identifier for the product option.

namestring

The name of the product option.

sortOrderinteger

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

Changes

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