Update Loyalty Rule
Update an existing Loyalty Rule
Authorizations
Path Parameters
Body
Body
Name of the loyalty rule
1"Daily Rewards Program"
Start time for the loyalty rule
"2024-01-01T00:00:00Z"
End time for the loyalty rule
"2024-12-31T23:59:00Z"
Reward amount for the loyalty rule
"10.5"
Optional description of the loyalty rule
"This rule rewards users daily for specific actions."
Effective start time of the rule
"2024-01-01T00:00:00Z"
Effective end time of the rule
"2024-12-31T23:59:00Z"
URL for uploading custom rewards via CSV
"https://example.com/rewards.csv"
API URL for custom rewards integration
"https://api.example.com/rewards"
Optional stratus subscription id for the rule
"sub12345"
Optional stratus function id for the rule
"func12345"
Additional metadata for the loyalty rule
Blockchain network where the rule will apply
abstract, abstractTestnet, apechain, arbitrum, avalanche, avalancheFuji, base, baseSepolia, berachain, berachainArtio, berachainBepolia, binance, bscTestnet, campTestnet, fantom, fantomTestnet, flowMainnet, mainnet, nexus, nexusTestnet, optimism, polygon, polygon_mumbai, skaleNebula, skaleEuropa, skaleCalypso, solana, sophon, sophonTestnet, sui, superseed, superseedSepolia, vanar, xai, zksync, coti, cotiTestnet, dogeosTestnet, morph, morphTestnet, morphHolesky, ultra, ultraTestnet, nitrograph, sepolia, optimism_sepolia, arbitrumSepolia, goerli, optimism_goerli, arbitrumGoerli, basecamp, somnia, zkverify, polkadot, kusama, horizen, horizenTestnet, flow_cadence "mainnet"
Blockchain address of the associated collection
"0x1234567890abcdef1234567890abcdef12345678"
List of associated collections
Whether to hide this rule in the user interface
false
Whether to show this rule before the start time
false
Flag indicating if the progress is tracked. If enabled, the rule can only be completed once the progress is 100%.
true
How tracked progress is interpreted. "percentage" counts 0-100 and is shown as a percentage. "counter" counts up to the highest reward range end and is shown as a raw count.
counter, percentage "percentage"
Whether this rule is required for participation
true
ID for associated OAuth credentials
"123e4567-e89b-12d3-a456-426614174000"
Type of reward issued by this rule
points, multiplier, badge, token "points"
Loyalty currency. Optional when rewardType is token and tokenReward is provided; backend resolves the hidden currency from the contract.
"456e1234-e89b-12d3-a456-426614174003"
When rewardType is token, provide relayer and either an ERC-20 contract or isNative=true to find or create the hidden loyalty currency and onchain token.
Frequency of the rule execution
none, once, hourly, daily, weekly, monthly, immediately "daily"
Time interval for recurring rule execution
hourly, daily, weekly, monthly, once, custom, every_message, unlimited "weekly"
ID of the rule group section to associate with the rule
"123e4567-e89b-12d3-a456-426614174005"
URL of the media to be displayed
"https://example.com/media.png"
The maximum amount of points a user can earn per interval. Available for the smart contract and external rules.
100
The interval for the max amount. Available for the smart contract and external rules.
daily, weekly, monthly, lifetime "daily"
ID of the external integration
"123e4567-e89b-12d3-a456-426614174005"
URL of the Shopify store
"https://example.com"
The lifetime of the reward
permanent, dynamic "permanent"
The type of claim for the reward
manual, auto "auto"
The IDs of the contracts
["123e4567-e89b-12d3-a456-426614174005"]
Filter dApps by deployment age before ranking.
daily, weekly, monthly "daily"
Reward based on data usage within the last day, week, or month. Leave it empty for all time usage.
daily, weekly, monthly "daily"
Timestamp when the loyalty rule was deleted. Set to null to restore a deleted rule.
null
Response
200
Name of the loyalty rule
1"Daily Rewards Program"
Start time for the loyalty rule
"2024-01-01T00:00:00Z"
End time for the loyalty rule
"2024-12-31T23:59:00Z"
Reward amount for the loyalty rule
"10.5"
Optional description of the loyalty rule
"This rule rewards users daily for specific actions."
Effective start time of the rule
"2024-01-01T00:00:00Z"
Effective end time of the rule
"2024-12-31T23:59:00Z"
URL for uploading custom rewards via CSV
"https://example.com/rewards.csv"
API URL for custom rewards integration
"https://api.example.com/rewards"
Optional stratus subscription id for the rule
"sub12345"
Optional stratus function id for the rule
"func12345"
Additional metadata for the loyalty rule
Blockchain network where the rule will apply
abstract, abstractTestnet, apechain, arbitrum, avalanche, avalancheFuji, base, baseSepolia, berachain, berachainArtio, berachainBepolia, binance, bscTestnet, campTestnet, fantom, fantomTestnet, flowMainnet, mainnet, nexus, nexusTestnet, optimism, polygon, polygon_mumbai, skaleNebula, skaleEuropa, skaleCalypso, solana, sophon, sophonTestnet, sui, superseed, superseedSepolia, vanar, xai, zksync, coti, cotiTestnet, dogeosTestnet, morph, morphTestnet, morphHolesky, ultra, ultraTestnet, nitrograph, sepolia, optimism_sepolia, arbitrumSepolia, goerli, optimism_goerli, arbitrumGoerli, basecamp, somnia, zkverify, polkadot, kusama, horizen, horizenTestnet, flow_cadence "mainnet"
Blockchain address of the associated collection
"0x1234567890abcdef1234567890abcdef12345678"
List of associated collections
Whether to hide this rule in the user interface
false
Whether to show this rule before the start time
false
Flag indicating if the progress is tracked. If enabled, the rule can only be completed once the progress is 100%.
true
How tracked progress is interpreted. "percentage" counts 0-100 and is shown as a percentage. "counter" counts up to the highest reward range end and is shown as a raw count.
counter, percentage "percentage"
Whether this rule is required for participation
true
ID for associated OAuth credentials
"123e4567-e89b-12d3-a456-426614174000"
Type of reward issued by this rule
points, multiplier, badge, token "points"
Loyalty currency. Optional when rewardType is token and tokenReward is provided; backend resolves the hidden currency from the contract.
"456e1234-e89b-12d3-a456-426614174003"
When rewardType is token, provide relayer and either an ERC-20 contract or isNative=true to find or create the hidden loyalty currency and onchain token.
Frequency of the rule execution
none, once, hourly, daily, weekly, monthly, immediately "daily"
Time interval for recurring rule execution
hourly, daily, weekly, monthly, once, custom, every_message, unlimited "weekly"
ID of the rule group section to associate with the rule
"123e4567-e89b-12d3-a456-426614174005"
URL of the media to be displayed
"https://example.com/media.png"
The maximum amount of points a user can earn per interval. Available for the smart contract and external rules.
100
The interval for the max amount. Available for the smart contract and external rules.
daily, weekly, monthly, lifetime "daily"
ID of the external integration
"123e4567-e89b-12d3-a456-426614174005"
URL of the Shopify store
"https://example.com"
The lifetime of the reward
permanent, dynamic "permanent"
The type of claim for the reward
manual, auto "auto"
The IDs of the contracts
["123e4567-e89b-12d3-a456-426614174005"]
Filter dApps by deployment age before ranking.
daily, weekly, monthly "daily"
Reward based on data usage within the last day, week, or month. Leave it empty for all time usage.
daily, weekly, monthly "daily"
Timestamp when the loyalty rule was deleted. Set to null to restore a deleted rule.
null