Skip to main content
Set a managed-compute spend cap

Authorizations

Authorization
string
header
required

BoxRouter API key; never an upstream provider key.

Path Parameters

scope
enum<string>
required

What the cap applies to. Only workspace exists: it covers every API key in the workspace. Any other value returns 400 invalid_request with details.field scope.

Available options:
workspace

Body

application/json

A cap on managed compute spend. Both fields are always set; clear a cap with the delete operation.

limit_usd
string
required

Positive exact USD amount as a decimal string with at most nine fractional digits.

Pattern: ^(?:0\.[0-9]*[1-9][0-9]{0,8}|[1-9][0-9]*(?:\.[0-9]{1,9})?)$
limit_period
enum<string>
required
Available options:
total,
daily,
monthly

Response

The scope's cap after replacement.

mode
enum<string>
required
Available options:
test,
live
scope
enum<string>
required
Available options:
workspace
spend_limit
object | null
required

A cap on managed compute spend. Both fields are always set; clear a cap with the delete operation.