Skip to main content
PUT
Set the guest-execution caps

Authorizations

Authorization
string
header
required

MCPJam API key (sk_…). Create one at Settings → API keys. Guest sessions cannot use the API, and API keys cannot manage other API keys.

Path Parameters

projectId
string
required

ID of the hosted project that contains the server.

scenarioId
string
required

Scenario ID, as returned by publishing an environment or by the project's scenario reads.

Body

application/json

The spend dial for ANONYMOUS visitors. Replaced as a whole, never patched: these caps only mean something as a set, and a partial update that raised dailyCreditCap while leaving a stale maxConcurrentComputers behind would produce a combination nobody chose.

enabled
boolean
required

Master switch. Everything below is inert while this is false.

computerEnabled
boolean
required
sharedSkillsEnabled
boolean
required
dailyCreditCap
number
required

Hard ceiling on what visitors can spend per day, in credits.

Required range: x >= 0
dailyComputerStartCap
integer
required
Required range: x >= 0
maxConcurrentComputers
integer
required
Required range: x >= 0
harnessEnabled
boolean
dailyHarnessSpendCapMicros
integer

Integer USD micros.

Required range: x >= 0
dailyHarnessCallCap
integer
Required range: x >= 0
maxConcurrentHarnessRuns
integer
Required range: x >= 0

Response

The caps now in force.

The spend dial for ANONYMOUS visitors. Replaced as a whole, never patched: these caps only mean something as a set, and a partial update that raised dailyCreditCap while leaving a stale maxConcurrentComputers behind would produce a combination nobody chose.

enabled
boolean
required

Master switch. Everything below is inert while this is false.

computerEnabled
boolean
required
sharedSkillsEnabled
boolean
required
dailyCreditCap
number
required

Hard ceiling on what visitors can spend per day, in credits.

Required range: x >= 0
dailyComputerStartCap
integer
required
Required range: x >= 0
maxConcurrentComputers
integer
required
Required range: x >= 0
harnessEnabled
boolean
dailyHarnessSpendCapMicros
integer

Integer USD micros.

Required range: x >= 0
dailyHarnessCallCap
integer
Required range: x >= 0
maxConcurrentHarnessRuns
integer
Required range: x >= 0