PATCH
/
sourceRules
/
{ruleId}
Update a source rule
curl --request PATCH \
  --url https://api.paygentic.io/v0/sourceRules/{ruleId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "enabled": true,
  "conditions": [
    {
      "type": "date",
      "operator": "equals",
      "value": "<string>"
    }
  ],
  "order": 123
}'
{
  "id": "<string>",
  "sourceId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "enabled": true,
  "conditions": [
    {
      "type": "date",
      "operator": "equals",
      "value": "<string>"
    }
  ],
  "order": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastEvaluatedAt": "2023-11-07T05:31:56Z",
  "evaluationCount": 123,
  "matchCount": 123
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

ruleId
string
required

Body

application/json

Response

200
application/json

Rule updated

An auto-acceptance rule that automatically approves source events matching specified conditions. Rules help automate the approval process for trusted customers or specific transaction patterns.