Skip to content

OutcomeContract.update

PATCH /{namespace}/outcome-contracts/{id}

Changes the given properties of an Outcome Contract.

Mode
do
Event
OutcomeContract.updated

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

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Outcome Contract.
donetextThe state or Event that counts as done.
accepttextWho accepts the result, and within what window.
remedytextWhat happens on a miss: redo, refund, or credit.
revisionsintegerHow many times the Customer may send work back before the remedy applies, such as 1.
silencestringWhat the Customer’s silence means once the acceptance window passes.
earnsstringThe Event that captures payment and earns the fee.
assurancejsonThe Evaluators that check done before every delivery, and the share of work a person grades, such as 2%.
windowstringHow long the Customer has to confirm, revise or dispute each delivery, as an ISO duration.

Outputs

OutputTypeRequiredDescription
outcomeContractOutcome ContractrequiredThe Outcome Contract.

Effects

  • Emits OutcomeContract.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.OutcomeContract.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.