import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const projectLimits = await client.projects.limits.update('id');
console.log(projectLimits.max_concurrent_invocations);{
"max_concurrent_sessions": 10,
"max_persistent_sessions": 5,
"max_concurrent_invocations": 20,
"max_pooled_sessions": 50
}Update resource limit overrides for a project. Only fields present in the request are modified. Set a field to 0 to remove that limit cap; omit a field to leave it unchanged.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const projectLimits = await client.projects.limits.update('id');
console.log(projectLimits.max_concurrent_invocations);{
"max_concurrent_sessions": 10,
"max_persistent_sessions": 5,
"max_concurrent_invocations": 20,
"max_pooled_sessions": 50
}Documentation Index
Fetch the complete documentation index at: https://tbd-6fc993ce-hypeship-intro-create-control-observe.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Project ID
Maximum concurrent browser sessions for this project. Set to 0 to remove the cap; omit to leave unchanged.
Maximum persistent browser sessions for this project. Set to 0 to remove the cap; omit to leave unchanged.
Maximum concurrent app invocations for this project. Set to 0 to remove the cap; omit to leave unchanged.
Maximum pooled sessions capacity for this project. Set to 0 to remove the cap; omit to leave unchanged.
Project limits updated
Maximum concurrent browser sessions for this project. Null means no project-level cap.
10
Maximum persistent browser sessions for this project. Null means no project-level cap.
5
Maximum concurrent app invocations for this project. Null means no project-level cap.
20
Maximum pooled sessions capacity for this project. Null means no project-level cap.
50