Skip to content

Template.upgraded

Emitted each time a Template is upgraded.

Template.upgrade emits Template.upgraded when it completes on a Template.

PropertyValue
Emitted byTemplate.upgrade
NounTemplate
WakesNone.

Payload

Each delivery is an Event record. data holds what Template.upgrade returns.

FieldTypeRequiredDescription
namestringrequiredTemplate.upgraded.
atdatetimerequiredWhen it happened.
seqintegerIts position in the namespace, one more than the Event before; any seq is a cursor into the history.
datajsonrequiredThe Thing as the Action left it.
data.changeChangerequiredThe Change that moves the pin.
data.templateTemplaterequiredThe Template upgraded to.
data.template.bodytextrequiredThe MDX source with its variables.

Example

JSON
{
  "$id": "https://api.sb/tutorloop.com/events/event_1",
  "$type": "Event",
  "name": "Template.upgraded",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "change": {
      "$id": "https://api.sb/tutorloop.com/changes/change_1",
      "$type": "Change",
      "status": "Open",
      "base": "version_1"
    },
    "template": {
      "$id": "https://api.sb/tutorloop.com/templates/template_1",
      "$type": "Template",
      "body": "Example body"
    }
  },
  "seq": 1
}