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
var_id
integer
required

The ID of the variable to be set for the item.

Example:

123

var_value
string
required

The value of the variable to be applied to the item.

Example:

"Large"

Response

200
application/json
Successfully set or updated the variable for the item in the cart.
success
boolean

Indicates if the operation was successful.