product

product.option.assign

Assign option from product.

post/product.option.assign.json

Request

  • Base URL: https://api.api2cart.com/v1.1
  • URL: https://api.api2cart.com/v1.1/product.option.assign.json
  • Auth: API key in header x-api-key and API key in header x-store-key

Query parameters

product_idstring required

Defines product id where the option should be assigned

option_idstring required

Defines option id which has to be assigned

requiredboolean

Defines if the option is required

sort_orderinteger

Sort number in the list

option_valuesstring

Defines option values that has to be assigned

clear_cacheboolean

Is cache clear required

idempotency_keystring

A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong>

Response

successful operation

return_codeinteger
return_messagestring

Changes

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