Skip to main content
PUT
Changes one template of this instance’s terms library. 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. A change to the title or the text writes a new template version and answers changed: true. Markets bound to the template keep the version they published until they are bound again with Save Terms and the same templateId. Until then they read TEMPLATE_OUTDATED, as Get Terms Template and Get Terms report. A standing policy publishes the version that is current when a market is adopted. archived: true archives the template, as Archive Terms Template does, and archived: false restores it. Archiving alone writes no version and answers changed: false. A request that changes nothing writes nothing and answers changed: false as well. Only an account Trusset approved as a lender of record can author templates. Any other account is refused with 403 CURATOR_NOT_APPROVED before the body is read.

Path Parameters

string
required
Template ID from List Terms Templates, 1 to 100 characters.

Body Parameters

string
New title, 1 to 200 characters, under the rules of Create Terms Template.
string
New text as markdown, under the rules of Create Terms Template: at most 262,144 bytes of UTF-8, not blank, no control characters other than tab, newline and carriage return.
boolean
true to archive the template, false to restore it. Archiving is refused with 409 TEMPLATE_IN_USE while the template is still bound to a published, non-customised market or to any standing policy, switched off or not. See Archive Terms Template.

Response Fields

object

Error Codes