Skip to content

Limit methods: raise

The Limit Verbs raise as typed SDK methods, with inputs, result, refusals and an example.

Reference for Limit, one group of Limit methods.

Limit.raise

Raise lifts a Limit after an Approval allows it, and the Action that waited on it proceeds. Verb page.

TypeScript
interface LimitVerbs {
  raise(input: LimitRaiseInput, options?: SB.CallOptions): SB.Call<Limit>
}

Emits Limit.raised.

Inputs

InputTypeRequiredDescription
limitLimitrequiredThe Limit to lift.
tojsonrequiredThe new amount, count or rate.

Returns

OutputTypeRequiredDescription
limitLimitrequiredThe raised Limit.

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.
The record is not in a state that allows this Verb, so the call is refused.refusedRead the record, run the Verb that moves it to an allowed state, then retry.None.

Example

TypeScript
import { $ } from 'startup-builder'

const limit = await $.Limit.raise({ limit: 'limit_UWHXYVKsJB', to: {} })