Skip to main content
PUT
Replace the stock alert rule

Authorizations

Authorization
string
header
required

Partner API key: Authorization: Bearer vk_live_…. Use vk_test_… keys against the sandbox. See Authentication.

Path Parameters

voucherSetId
integer<uint64>
required

Numeric id (voucherSetId). A non-numeric id is a 400 data-failed-validation; an unknown id or one of another partner is a 404. Unsigned 64-bit integer. May exceed 2^53; parse with a BigInt-safe JSON parser in JavaScript.

Required range: 0 <= x <= 18446744073709552000

Body

application/json

The complete stock alert rule.

thresholds
enum<integer>[]
required

Unique subset of 50, 75, 90, 100; [] means no alerts.

Available options:
50,
75,
90,
100
recipientUserIds
integer<uint64>[]
required

Up to 20 active members who can view voucher sets.

Maximum array length: 20

Unsigned 64-bit integer. May exceed 2^53; parse with a BigInt-safe JSON parser in JavaScript.

Required range: 0 <= x <= 18446744073709552000
extraEmails
string[]
required

Up to 5 extra addresses.

Maximum array length: 5

Email.

enabled
boolean
required

Alerts on or off.

Response

Success.

Single-object envelope around StockAlertRule.

data
object
required

Stock threshold alerts of one voucher set.