Skip to content

Template.extend

POST /{namespace}/templates/{template}/extend

Extend adds a Template to a Startup’s bases, pinned to a Version, so the Startup inherits its definition.

Mode
do
Event
Template.extended

Inputs

InputTypeRequiredDescription
templateTemplaterequiredThe Template to inherit.
startupStartuprequiredThe Startup that extends it.

Outputs

OutputTypeRequiredDescription
startupStartuprequiredThe Startup with the Template among its bases.
templateTemplaterequiredThe Template extended.

Effects

  • Emits Template.extended.
  • Pins the Template’s current Version in the Startup’s lockfile.
  • Refuses a clash between two bases until the Startup settles it.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Template.extend
The record is not in a state that allows this Verb, so the call is refused.refusedRead the record, run the Verb that moves it to an allowed state, then retry.Template.extend
A clash between two bases until the Startup settles itrefusedClear what the check names, then call it again.Template.extend

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.