curl --request PATCH \
--url https://api.getovra.com/policies/agent/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"maxTransactionEuros": 1,
"dailyLimitEuros": 1,
"monthlyLimitEuros": 1,
"autoApproveLimitEuros": 1,
"merchantAllowlist": [
"<string>"
],
"merchantBlocklist": [
"<string>"
],
"mccCategories": [
"<string>"
],
"allowedCountries": [
"<string>"
],
"lockToFirstMerchant": true,
"cooldownMinutes": 1,
"allowedMccs": [
"<string>"
],
"blockedMccs": [
"<string>"
],
"requireIntent": true,
"requireAttestation": true,
"attestationWindowMinutes": 2,
"expiresAfterMinutes": 2,
"expirationAction": "freeze",
"activeHoursStart": 11,
"activeHoursEnd": 11,
"maxUsageCount": 2,
"amountTolerancePercent": 1
}
'{
"id": "<string>",
"agentId": "<string>",
"ownerId": "<string>",
"name": "<string>",
"maxTransactionEuros": 123,
"dailyLimitEuros": 123,
"monthlyLimitEuros": 123,
"autoApproveLimitEuros": 123,
"merchantAllowlist": [
"<string>"
],
"merchantBlocklist": [
"<string>"
],
"mccCategories": [
"<string>"
],
"allowedCountries": [
"<string>"
],
"lockToFirstMerchant": true,
"cooldownMinutes": 123,
"requireIntent": true,
"requireAttestation": true,
"expiresAfterMinutes": 123,
"expirationAction": "<string>",
"activeHoursStart": 123,
"activeHoursEnd": 123,
"maxUsageCount": 123,
"amountTolerancePercent": 123,
"updatedAt": "2023-11-07T05:31:56Z"
}curl --request PATCH \
--url https://api.getovra.com/policies/agent/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"maxTransactionEuros": 1,
"dailyLimitEuros": 1,
"monthlyLimitEuros": 1,
"autoApproveLimitEuros": 1,
"merchantAllowlist": [
"<string>"
],
"merchantBlocklist": [
"<string>"
],
"mccCategories": [
"<string>"
],
"allowedCountries": [
"<string>"
],
"lockToFirstMerchant": true,
"cooldownMinutes": 1,
"allowedMccs": [
"<string>"
],
"blockedMccs": [
"<string>"
],
"requireIntent": true,
"requireAttestation": true,
"attestationWindowMinutes": 2,
"expiresAfterMinutes": 2,
"expirationAction": "freeze",
"activeHoursStart": 11,
"activeHoursEnd": 11,
"maxUsageCount": 2,
"amountTolerancePercent": 1
}
'{
"id": "<string>",
"agentId": "<string>",
"ownerId": "<string>",
"name": "<string>",
"maxTransactionEuros": 123,
"dailyLimitEuros": 123,
"monthlyLimitEuros": 123,
"autoApproveLimitEuros": 123,
"merchantAllowlist": [
"<string>"
],
"merchantBlocklist": [
"<string>"
],
"mccCategories": [
"<string>"
],
"allowedCountries": [
"<string>"
],
"lockToFirstMerchant": true,
"cooldownMinutes": 123,
"requireIntent": true,
"requireAttestation": true,
"expiresAfterMinutes": 123,
"expirationAction": "<string>",
"activeHoursStart": 123,
"activeHoursEnd": 123,
"maxUsageCount": 123,
"amountTolerancePercent": 123,
"updatedAt": "2023-11-07T05:31:56Z"
}API key (sk_...) or Agent token (at_...)
All fields from PolicyCreateRequest, but every field is optional.
1x >= 0x >= 0x >= 0x >= 0x >= 0x >= 1x >= 1freeze, close, notify 0 <= x <= 230 <= x <= 23x >= 1x >= 0Updated policy