PUT/api/v1/documents/{slug}/template

Make a page a template

true turns the page itself into a template, sub-pages included: it leaves every list and search and shows when people make a new page. false turns it back into a page. Pages already made from it never change.

API token required10 per minute per IP

Guide: Templates

Code samples and Try it

Path parameters

#
  • slugstringRequired

    The document's address: the part after markdrop.in/.

Request body

#

application/json, required

  • templatebooleanRequired

    true makes the page a template; false makes it a page again.

Responses

#
  • 200OK.
  • 401No token, or the token is revoked or mistyped.
  • 422The request didn't validate. detail lists each problem, with where it is (loc) and why (msg).
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?