Skip to content

Watch.rotate

POST /{namespace}/watches/{watch}/rotate

Rotate issues a new signing secret for a Watch and signs with both secrets until the old one expires.

Noun
Watch
Mode
do
Event
Watch.rotated

Inputs

InputTypeRequiredDescription
watchWatchrequiredThe Watch whose secret changes.
overlapstringHow long the old secret keeps signing, as an ISO 8601 duration; defaults to PT24H.

Outputs

OutputTypeRequiredDescription
watchWatchrequiredThe Watch, signing with both secrets.
secretstringrequiredThe new signing secret, shown once.

Effects

  • Emits Watch.rotated.
  • Adds a second signature to every delivery until the overlap ends.
  • Retires the old secret when the overlap ends.

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.Watch.rotate

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.