cURL
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 }
Updates the variable value for a specific item in the user’s cart. It handles variable pricing based on item configuration and user selection.