Policies
Update Policy
Update a policy by policy ID.
patch/v1/policies/{policy_id}
Path parameters
policy_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
{
"rules": [
{
"conditions": [
{
"field": "content"
}
]
}
]
}Response
Updated policy object.
Example response
{
"chain_type": "ethereum",
"created_at": 1741833088894,
"id": "tb54eps4z44ed0jepousxi4n",
"name": "Allowlisted stablecoins",
"owner_id": null,
"rules": [
{
"action": "ALLOW",
"conditions": [
{
"field": "to",
"field_source": "ethereum_transaction",
"operator": "eq",
"value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
],
"id": "bdyfoa65pro1eez6iwtzanol",
"method": "eth_sendTransaction",
"name": "Allowlist USDC contract on Base"
}
],
"version": "1.0"
}