Skip to content
Update terminal settings

Update terminal settings

Change the workspace’s command or approval time limit.

PATCH/api/v1/terminal-settings

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/terminal-settings", {
  method: "PATCH",
  headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
  body: JSON.stringify({
  "activeTimeLimitSeconds": 120
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Request body#

activeTimeLimitSecondsinteger

1–300 seconds of command active time. Approval waits and integration calls do not count.

approvalTimeoutSecondsinteger

300–2,592,000 seconds (5 minutes–30 days) that a tool call may wait for approval.

Responses#

Returns both effective limits after saving.

200 response
{
  "activeTimeLimitSeconds": 120,
  "approvalTimeoutSeconds": 900
}
More about this endpoint

Provide at least one limit. Omitted limits keep their values, including on independent concurrent updates.