Update agent policy
Partially update an agent's policy. Only provided fields will be updated; omitted fields retain their current values. Policy changes take effect immediately.
Request body
Example request
{
"spendingLimits": {
"currency": "USD",
"perTransactionLimit": 50000,
"dailyLimit": 500000,
"dailyTransactionLimit": 10,
"monthlyLimit": 5000000
},
"accountRestrictions": {
"allowedAccountIds": [
"Account:019542f5-b3e7-1d02-0000-000000000001"
],
"accountRules": [
{
"accountId": "Account:019542f5-b3e7-1d02-0000-000000000001",
"perTransactionLimit": 10000
}
]
},
"approvalThresholds": {
"currency": "USD",
"amount": 100000
}
}Response
Agent policy updated successfully
Example response
{
"id": "Agent:019542f5-b3e7-1d02-0000-000000000001",
"name": "Payroll Automation Agent",
"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000001",
"isConnected": true,
"policy": {
"spendingLimits": {
"currency": "USD",
"perTransactionLimit": 50000,
"dailyLimit": 500000,
"dailyTransactionLimit": 10,
"monthlyLimit": 5000000
},
"accountRestrictions": {
"allowedAccountIds": [
"Account:019542f5-b3e7-1d02-0000-000000000001"
],
"accountRules": [
{
"accountId": "Account:019542f5-b3e7-1d02-0000-000000000001",
"perTransactionLimit": 10000
}
]
},
"approvalThresholds": {
"currency": "USD",
"amount": 100000
}
},
"usage": {
"dailyTransactionCount": 3,
"dailySpend": 150000,
"dailyResetDate": "2025-07-22",
"monthlySpend": 750000,
"monthlyResetMonth": "2025-08"
},
"createdAt": "2025-07-21T17:32:28Z",
"updatedAt": "2025-07-21T17:32:28Z"
}Changes
Changed in 6 of the 24 revisions of this API.142
- ▲
removed the enum value
CREATE_TRANSFERSof the request propertypermissions/items/request-property-enum-value-removed
- ○
removed the
CREATE_TRANSFERSenum value from thepolicy/permissions/items/response property for the response status200response-property-enum-value-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
added the new
EXTERNAL_ACCOUNT_VERIFICATION_REQUIREDenum value to thecoderesponse property for the response status400response-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
added the new
TRANSACTION_SIZE_LIMIT_EXCEEDEDenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
- ●
added the new
CARDHOLDER_KYC_NOT_APPROVEDenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
- ●
added the new
END_USER_TERMS_VERSION_NOT_FOUNDenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
- ○
added the optional property
details/errorsto the response with the400statusresponse-optional-property-added
- ○