Saltar al contenido principal
PATCH
Partially update an existing fraud rule

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

rule_id
string
requerido

Rule ID (UUID)

Cuerpo

application/json
action
enum<string>
Opciones disponibles:
ALLOW,
DENY,
REVIEW
Ejemplo:

"DENY"

description
string

Rule description, at most 1000 characters.

Maximum string length: 1000
expression
string

CEL expression, 1 to 5000 characters. Editable only while the rule is in DRAFT status.

Required string length: 1 - 5000
name
string

Rule name, 1 to 255 characters.

Required string length: 1 - 255
scopes
object[]

Respuesta

OK

action
string
requerido
Ejemplo:

"DENY"

createdAt
string<date-time>
requerido
Ejemplo:

"2021-01-01T00:00:00Z"

expression
string
requerido
Ejemplo:

"transaction.amount > 1000 && account.type == 'checking'"

name
string
requerido
Maximum string length: 255
Ejemplo:

"Block high-value checking transactions"

ruleId
string<uuid>
requerido
Ejemplo:

"00000000-0000-0000-0000-000000000000"

scopes
object[] | null
requerido
status
string
requerido
Ejemplo:

"ACTIVE"

updatedAt
string<date-time>
requerido
Ejemplo:

"2021-01-01T00:00:00Z"

activatedAt
string<date-time>
Ejemplo:

"2021-01-01T00:00:00Z"

deactivatedAt
string<date-time>
Ejemplo:

"2021-01-01T00:00:00Z"

deletedAt
string<date-time>
Ejemplo:

"2021-01-01T00:00:00Z"

description
string
Ejemplo:

"Denies transactions over $1000 from checking accounts"