Skip to content

Deal.assign

POST /{namespace}/deals/{deal}/assign

Assign gives a Deal one owner Worker, who carries its next step until it is won or lost.

Noun
Deal
Mode
do
Event
Deal.assigned

Inputs

InputTypeRequiredDescription
dealDealrequiredThe Deal.
ownerWorkerThe Worker to own it; omitted, the routing Policy picks.

Outputs

OutputTypeRequiredDescription
dealDealrequiredThe Deal, with its owner.

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.Deal.assign

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.