Policy
Update policy
Update the agent’s policy settings
PATCH
Updates one or more policy fields for the agent. All fields are optional — only include the fields you want to change. The response returns the full updated policy.
Requires authentication via Bearer token.
Request body
All fields are optional. Only include the fields you want to update.Maximum USD value allowed per individual transaction.
Maximum total USD value allowed across all transactions in a 24-hour period.
Whitelist of Solana addresses permitted to receive transfers. Pass an empty array
[] to allow all recipients.Set to
true to enable token swaps via the trade endpoint, or false to disable.Set to
true to allow liquidity pool interactions, or false to disable.Set to
true to allow prediction market interactions, or false to disable.JWT token validity in hours. Changes take effect on the next authentication.
Response
true when the update succeeds.HTTP status code.
Human-readable result message.
Errors
| Status | Description |
|---|---|
400 | Invalid field value or type |
401 | Missing or invalid Bearer token |
429 | Rate limit exceeded |