Skip to main content
POST
Adds a terms of use template to this instance’s library and answers 201. The template starts at version 1 and is bound to nothing. Bind it to a market with Save Terms and templateId, or to a standing policy with termsTemplateId. This is a database write: nothing is signed and nothing goes on chain. 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. canAuthor on List Terms Templates says whether this account is one.

Body Parameters

string
required
Template title, 1 to 200 characters. Trimmed, must not be blank, and must not contain control characters, tab and newline included.
string
required
The document as markdown. Stored verbatim apart from Windows line endings, which become \n. The stored text must fit in 262,144 bytes of UTF-8, must not be blank, and must not contain control characters other than tab, newline and carriage return.

Response Fields

object

Error Codes