Replace Policy

Replaces all rules in an existing policy by id.

Path parameters

idstringRequired

ID of the policy to be replaced

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
policyNamestringOptionalDefaults to My Policy

Name of the policy

rulesobjectOptional

Rules for “sponsorship” policy type. Empty if policyType is not “sponsorship”.

solanaRulesobjectOptional

Rules for “solana” policy type. Empty if policyType is not “solana”.

networkslist of stringsOptional

Networks for the policy. Example: [“ETH_MAINNET”]. For Solana policies, valid values are “SOLANA_MAINNET” and “SOLANA_DEVNET”.

Response

Policy rules replaced successfully

dataobjectOptional
errorobjectOptional