Skip to content

Referral commands: update, delete

The Referral Verbs update, delete as CLI commands, with inputs, result, refusals and an example.

Reference for Referral, one group of Referral commands.

Referral.update

Changes the given properties of a Referral. Verb page.

Text
npx startup-builder do Referral.update --json '<input>' [--try | --send | --do]

Emits Referral.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Referral.
rewardmoneyWhat the referrer earns.
rewardKindstringWhat the referrer earns: earlier access, or cash, which pays only after Live.

Returns

OutputTypeRequiredDescription
referralReferralrequiredThe Referral.

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.None.

Example

Terminal
npx startup-builder do Referral.update --json '{"id":"referral_I89J7wngKt","reward":{"amount":29,"currency":"USD"}}'

Referral.delete

Deletes a Referral: a soft delete that keeps its history, undone by Thing.restore. Verb page.

Text
npx startup-builder do Referral.delete --json '<input>' [--try | --send | --do]

Emits Referral.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Referral.

Returns

OutputTypeRequiredDescription
referralReferralrequiredThe Referral.

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.None.

Example

Terminal
npx startup-builder do Referral.delete --json '{"id":"referral_I89J7wngKt"}'