Skip to content

Tenant.pin

POST /{namespace}/tenants/{tenant}/pin

Pin moves a Tenant’s keys to another API version, or to `latest`, once a call with its test key passes there.

Noun
Tenant
Mode
do
Event
Tenant.pinned

Pin moves a Tenant’s keys to another API version, or to latest, once a call with its test key passes there.

Inputs

InputTypeRequiredDescription
tenantTenantrequiredThe Tenant whose keys move.
apiVersionstringrequiredThe version to answer at, such as v2, or latest to track the newest.

Outputs

OutputTypeRequiredDescription
tenantTenantrequiredThe Tenant, answering at its new version.

Effects

  • Emits Tenant.pinned.
  • Two-way: it runs at once, in the try, send and do modes.
  • Refuses until a call with the Tenant’s test key succeeds at the target version.
  • Leaves each Watch at the version current when it was created.

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.Tenant.pin
Until a call with the Tenant’s test key succeeds at the target versionrefusedClear what the check names, then call it again.Tenant.pin

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.