Policies
Update Policy Rule
Changed onUpdate a rule by policy ID and rule ID.
patch/v1/policies/{policy_id}/rules/{rule_id}
Request
- Base URLhttps://api.privy.io
- URLhttps://api.privy.io/v1/policies/{policy_id}/rules/{rule_id}
- AuthHTTP basic
Path parameters
policy_idstring required
rule_idstring required
Headers
privy-app-idstring required
ID of your Privy app.
privy-authorization-signaturestring
Request authorization signature. If multiple signatures are required, they should be comma separated.
privy-request-expirystring
Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the request must be processed.
Request body
Example request
{
"conditions": [
{
"field": "content"
}
]
}Response
Updated policy rule object.
Example response
{
"id": "rule_123",
"name": "Allowlist USDC contract on Base",
"method": "eth_sendTransaction",
"conditions": [
{
"field_source": "ethereum_transaction",
"field": "to",
"operator": "eq",
"value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
],
"action": "ALLOW"
}Changes
- warning
added the new
earn_incentive_claimenum value to theresponse property for the response status - info
added the new
earn_incentive_claimenum value to the request property
- warning
- warning
added the new
data_byte_lengthenum value to the///response property for the response status - info
added the new
data_byte_lengthenum value to the request property///
- warning