curl --request POST \
--url https://app.localhost:3000/api/public/v1/promotion-codes/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "pc_123",
"data": {
"code": "WINTER30",
"usageLimit": 200,
"active": true,
"firstTimeCustomersOnly": false
}
}
'