Skip to content

Subscription.update

PATCH /{namespace}/subscriptions/{id}

Changes the given properties of a Subscription.

Mode
do
Event
Subscription.updated

Update changes the given properties of a Subscription. It is inherited: every Noun has get, list, create, update and delete.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Subscription.
renewsAtdatetimeWhen it next renews.
quantityintegerHow many units of the Offer’s Price it holds, such as 12 members; 1 by default.
trialEndsAtdatetimeWhen a trial ends and the first paid period starts.
termEndsAtdatetimeWhen a committed term ends; the Renewal and the renewal notice read it.

Outputs

OutputTypeRequiredDescription
subscriptionSubscriptionrequiredThe Subscription.

Effects

  • Emits Subscription.updated.
  • Two-way: try, send, do.

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.Subscription.update

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.