Update terminal settings
Change the workspace’s command or approval time limit.
PATCH
/api/v1/terminal-settingsconst 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#
activeTimeLimitSecondsinteger1–300 seconds of command active time. Approval waits and integration calls do not count.
approvalTimeoutSecondsinteger300–2,592,000 seconds (5 minutes–30 days) that a tool call may wait for approval.
Responses#
Returns both effective limits after saving.
{
"activeTimeLimitSeconds": 120,
"approvalTimeoutSeconds": 900
}
More about this endpoint
Provide at least one limit. Omitted limits keep their values, including on independent concurrent updates.