Replace Policy
Replaces all rules in an existing policy by id.
Header Access Token
To call this endpoint, you must use your access token in the authorization header of the API request.
Path parameters
id
ID of the policy to be replaced
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
policyName
Name of the policy
rules
Rules for “sponsorship” policy type. Empty if policyType
is not “sponsorship”.
networks
Networks for the policy. Example: ETH_MAINNET
. For Solana policies, valid values are SOLANA_MAINNET
and SOLANA_DEVNET
.
solana_rules
Rules for solana
policy type. Empty if policyType
is not solana
.
erc20_rules
Rules for erc20
policy type. Empty if policyType
is not erc20
.
Response
Policy rules replaced successfully
data
error