curl --request PATCH \
--url https://api.onkernel.com/projects/{id}/limits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_concurrent_sessions": 123,
"max_concurrent_invocations": 123,
"max_pooled_sessions": 123
}
'import requests
url = "https://api.onkernel.com/projects/{id}/limits"
payload = {
"max_concurrent_sessions": 123,
"max_concurrent_invocations": 123,
"max_pooled_sessions": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
max_concurrent_sessions: 123,
max_concurrent_invocations: 123,
max_pooled_sessions: 123
})
};
fetch('https://api.onkernel.com/projects/{id}/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.onkernel.com/projects/{id}/limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'max_concurrent_sessions' => 123,
'max_concurrent_invocations' => 123,
'max_pooled_sessions' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.onkernel.com/projects/{id}/limits"
payload := strings.NewReader("{\n \"max_concurrent_sessions\": 123,\n \"max_concurrent_invocations\": 123,\n \"max_pooled_sessions\": 123\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.onkernel.com/projects/{id}/limits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"max_concurrent_sessions\": 123,\n \"max_concurrent_invocations\": 123,\n \"max_pooled_sessions\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onkernel.com/projects/{id}/limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_concurrent_sessions\": 123,\n \"max_concurrent_invocations\": 123,\n \"max_pooled_sessions\": 123\n}"
response = http.request(request)
puts response.read_body{
"max_concurrent_sessions": 10,
"max_concurrent_invocations": 20,
"max_pooled_sessions": 50
}{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}Update project limits
Deprecated: use PATCH /org/projects/{id}/limits instead. This route will be removed on 2026-11-24.
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.
curl --request PATCH \
--url https://api.onkernel.com/projects/{id}/limits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_concurrent_sessions": 123,
"max_concurrent_invocations": 123,
"max_pooled_sessions": 123
}
'import requests
url = "https://api.onkernel.com/projects/{id}/limits"
payload = {
"max_concurrent_sessions": 123,
"max_concurrent_invocations": 123,
"max_pooled_sessions": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
max_concurrent_sessions: 123,
max_concurrent_invocations: 123,
max_pooled_sessions: 123
})
};
fetch('https://api.onkernel.com/projects/{id}/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.onkernel.com/projects/{id}/limits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'max_concurrent_sessions' => 123,
'max_concurrent_invocations' => 123,
'max_pooled_sessions' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.onkernel.com/projects/{id}/limits"
payload := strings.NewReader("{\n \"max_concurrent_sessions\": 123,\n \"max_concurrent_invocations\": 123,\n \"max_pooled_sessions\": 123\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.onkernel.com/projects/{id}/limits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"max_concurrent_sessions\": 123,\n \"max_concurrent_invocations\": 123,\n \"max_pooled_sessions\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onkernel.com/projects/{id}/limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_concurrent_sessions\": 123,\n \"max_concurrent_invocations\": 123,\n \"max_pooled_sessions\": 123\n}"
response = http.request(request)
puts response.read_body{
"max_concurrent_sessions": 10,
"max_concurrent_invocations": 20,
"max_pooled_sessions": 50
}{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Project ID
Body
Maximum concurrent 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.
Response
Project limits updated
Maximum concurrent browser sessions for this project. Null means no project-level cap.
10
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