curl --request PUT \
--url https://api-next.ofauth.com/v2/access/promotions/bundles/:bundleId \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"discount": 50,
"duration": 183
}
'{
"id": 123,
"discount": 123,
"duration": 123,
"price": 123,
"canBuy": true
}Update an existing subscription bundle
Permission Required: promotions:write
curl --request PUT \
--url https://api-next.ofauth.com/v2/access/promotions/bundles/:bundleId \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"discount": 50,
"duration": 183
}
'{
"id": 123,
"discount": 123,
"duration": 123,
"price": 123,
"canBuy": true
}Requires a connection via the x-connection-id header.
Bundle ID
1Was this page helpful?