Skip to main content
PATCH
Update agent policy (API key or dashboard only)

Authorizations

Authorization
string
header
required

API key (sk_sandbox_* / sk_test_* / sk_live_*) or Agent token (at_* / at_dlg_*)

Path Parameters

agentId
string
required

Body

application/json

All fields from PolicyCreateRequest, but every field is optional.

name
string
required
Minimum string length: 1
maxTransactionEuros
number | null
Required range: x >= 0
dailyLimitEuros
number | null
Required range: x >= 0
monthlyLimitEuros
number | null
Required range: x >= 0
autoApproveLimitEuros
number | null
Required range: x >= 0
merchantAllowlist
string[]
merchantBlocklist
string[]
mccCategories
string[]
allowedCountries
string[]
lockToFirstMerchant
boolean
cooldownMinutes
integer | null
Required range: x >= 0
allowedMccs
string[]
blockedMccs
string[]
requireIntent
boolean
requireAttestation
boolean
attestationWindowMinutes
integer | null
Required range: x >= 1
expiresAfterMinutes
integer | null
Required range: x >= 1
expirationAction
enum<string>
Available options:
freeze,
close,
notify
activeHoursStart
integer | null
Required range: 0 <= x <= 23
activeHoursEnd
integer | null
Required range: 0 <= x <= 23
maxUsageCount
integer | null
Required range: x >= 1
amountTolerancePercent
number | null
Required range: x >= 0

Response

Updated policy

id
string
agentId
string
ownerId
string
name
string
maxTransactionEuros
number | null
dailyLimitEuros
number | null
monthlyLimitEuros
number | null
autoApproveLimitEuros
number | null
merchantAllowlist
string[]
merchantBlocklist
string[]
mccCategories
string[]
allowedCountries
string[]
lockToFirstMerchant
boolean
cooldownMinutes
integer | null
requireIntent
boolean
requireAttestation
boolean
expiresAfterMinutes
integer | null
expirationAction
string
activeHoursStart
integer | null
activeHoursEnd
integer | null
maxUsageCount
integer | null
amountTolerancePercent
number | null
updatedAt
string<date-time>