Skip to main content
PUT
Changes one standing policy. Send only the fields to change: a field you leave out keeps its value. This is a database write: nothing is signed and nothing goes on chain. See List Standing Policies for what a policy does. Switching a policy off with enabled: false is the reversible pause: the policy stays stored and matches no market until it is switched on again. Delete Standing Policy removes it for good. Only an account Trusset approved as a lender of record can write policies. Any other account is refused with 403 CURATOR_NOT_APPROVED before the body is read.

Path Parameters

string
required
Policy ID from List Standing Policies, 1 to 100 characters.

Body Parameters

string
DEPLOYER or COLLATERAL_TOKEN.
string
The deployer wallet or collateral token, 0x followed by 40 hex characters, not the zero address. Stored lowercased. When another policy of this instance already names the same kind and address, the change is refused with 409 STANDING_POLICY_EXISTS.
string | null
At most 120 characters. null or a blank label clears it.
string | null
Binds another template of this instance’s terms library, 1 to 100 characters. null binds none. An archived template is refused with 409 TEMPLATE_ARCHIVED.
object | null
Replaces the whole object: keys you leave out are removed, not kept. null clears it. The keys and their rules are those of Create Standing Policy, and any other key is refused with 400 VALIDATION_ERROR.
object | null
Replaces the loan agreement policy, with the rules of Create Standing Policy. null clears it. A change stamps agreementPolicySetAt; markets adopted before that keep what they have.
boolean
false switches the policy off, true switches it back on. A policy whose bound template has been archived cannot be switched on: the request is refused with 409 TEMPLATE_ARCHIVED, because a market adopted under it would go live without terms of use. Bind another template, or null, in the same request.

Response Fields

object

Error Codes