curl --request PUT \
--url https://api.pocketsflow.com/discounts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"value": 123,
"active": true,
"expiresAt": "2023-11-07T05:31:56Z"
}
'