Create a product option value

Creates a new product option value for a specific product.

post/products/{product_id}/option-values

Request

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

Path parameters

product_idinteger required

ID of the product which the option value will be assigned to.

Request body

namestring required

The name of the product option value.

optioninteger required

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

sortOrderinteger

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

Response

Product option value created 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.