v1

latestOpenAPI 3.1.02026-07-24233206489.1 KB

put/v1/policies/{id}

Path parameters

idstring required

ID of the policy

Request body

status'activated' | 'deactivated'

Defines the status of the policy

Possible values:

activated: The policy is active and will be evaluated at runtime.

deactivated: The policy is inactive and will not be evaluated at runtime. Usually used for drafting and will be the default value upon policy creation.

resourcestring

The resource in which the policy will apply (e.g. wallet, user)

operationstring

The operation where the resource participated in which the policy will apply

namestring

The merchant defined name of the policy

sourcestring

Base64 encoded string of the policy source code

Response

Example response

{
  "data": {
    "id": "policy_xxxxxxxxxxxxx",
    "resource": "transfer",
    "operation": "CreateTransfer",
    "name": "Policy for creating transfers",
    "language": "rego",
    "source": "cGFja2FnZSB0cmFuc2Zlci5Dc...",
    "status": "activated",
    "created_at": "2025-12-23T18:42:59.405003292Z",
    "updated_at": "2025-12-23T18:42:59.405003292Z"
  }
}