Create a product option

Creates a new product option for a specific product.

post/products/{product_id}/options

Request

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

Path parameters

product_idinteger required

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

Request body

namestring required

The name of the product option.

sortOrderinteger

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

Response

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