Skip to content

Template

A Template is reusable Content with variables, filled from Things in the graph and authored as MDX, rendering a Message, Document, or Page.

Read as
GuideSpec

A Template is an inheritable Startup definition that a new Startup extends, overriding anything it inherits.

Properties

PropertyTypeRequiredDescription
bodytextrequiredThe MDX source with its variables.

Object

JSON
{
  "$id": "https://api.sb/tutorloop.com/templates/template_1",
  "$type": "Template",
  "body": "Example body"
}

Relationships

Verbs

  1. createCreates a Template.
    POST /{namespace}/templatesdoTemplate.created
  2. getReturns one Template by id.
    GET /{namespace}/templates/{id}readNo Event
  3. listReturns Templates, newest first, one page at a time.
    GET /{namespace}/templatesreadNo Event
  4. updateChanges the given properties of a Template.
    PATCH /{namespace}/templates/{id}doTemplate.updated
  5. deleteDeletes a Template; its history is kept.
    DELETE /{namespace}/templates/{id}doTemplate.deleted
  6. extendExtend adds a Template to a Startup’s bases, pinned to a Version, so the Startup inherits its definition.
    POST /{namespace}/templates/{template}/extenddoTemplate.extended
  7. promotePromote moves one Startup’s refinement into a Template, so every Startup that extends the Template inherits it.
    POST /{namespace}/templates/{template}/promotedoTemplate.promoted
  8. upgradeUpgrade moves a Startup to a newer Version of a Template it extends, through a Change it can review.
    POST /{namespace}/templates/{template}/upgradedoTemplate.upgraded

Permissions

Which Access level may call each Verb. One-way Verbs wait their delay window.

Operationowneradminmemberviewer
Template.createYesYesYesNo
Template.getYesYesYesYes
Template.listYesYesYesYes
Template.updateYesYesYesNo
Template.deleteYesYesYesNo
Template.extendYesYesYesNo
Template.promoteYesYesYesNo
Template.upgradeYesYesYesNo

Call it

Text
Extend the latest template with a startup.

Example

A Startup that sells a collections Agent extends the Agent as a Service Template, then overrides the default Price to $150 a month.