POST
/
cart
/
setVariable
/
{id}
curl --request POST \
  --url https://v3.minestorecms.com/api/cart/setVariable/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "var_id": 123,
  "var_value": "Large"
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the item for which the variable is being set.

Body

application/json

Response

200
application/json

Successfully set or updated the variable for the item in the cart.

The response is of type object.