Skip to main content
POST
Bind a policy to a ledger scenario

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Body

application/json
ledgerId
string
required

Ledger whose transactions the binding applies to.

limitsAction
enum<string>
required

Instruction for the policy's limits; INHERIT leaves it to the next binding or the fallback.

Available options:
ENFORCE,
ADVISORY,
AUDIT,
OFF,
INHERIT
policyId
string
required

Policy the binding instructs.

rulesAction
enum<string>
required

Instruction for the policy's rules; INHERIT leaves it to the next binding or the fallback.

Available options:
ENFORCE,
ADVISORY,
AUDIT,
OFF,
INHERIT
selector
object
required

Scheme the binding matches, compared without case; {} matches every transaction of the ledger. Any key other than scheme is refused.

position
integer<int64>

Order among the policy's bindings in the ledger, 1 first; omitted or 0 appends.

Response

Created

bindingId
string
required
createdAt
string<date-time>
required
ledgerId
string
required
limitsAction
enum<string>
required
Available options:
ENFORCE,
ADVISORY,
AUDIT,
OFF,
INHERIT
policyId
string
required
position
integer<int64>
required
rulesAction
enum<string>
required
Available options:
ENFORCE,
ADVISORY,
AUDIT,
OFF,
INHERIT
selector
object
required
updatedAt
string<date-time>
required