Skip to content

Enrollment.cancel

POST /{namespace}/enrollments/{enrollment}/cancel

Cancel ends one Contact’s run through a Sequence for good, with the reason it records as `exitReason`.

Mode
do
Event
Enrollment.canceled

Cancel ends one Contact’s run through a Sequence for good, with the reason it records as exitReason.

Inputs

InputTypeRequiredDescription
enrollmentEnrollmentrequiredThe Enrollment to end.
reasonstringrequiredWhy it ends.

Outputs

OutputTypeRequiredDescription
enrollmentEnrollmentrequiredThe Enrollment, now exited.

Effects

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.Enrollment.cancel

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.