---
title: "Update project limits by ID or name"
method: PATCH
path: "/org/projects/{id_or_name}/limits"
tags: ["Projects"]
---

# Update project limits by ID or name

`PATCH /org/projects/{id_or_name}/limits`

## Request

- Base URL: `https://api.onkernel.com`
- URL: `https://api.onkernel.com/org/projects/{id_or_name}/limits`
- Auth: HTTP bearer

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.

## Path parameters

- `id_or_name` string, required

## Request body

- UpdateProjectLimitsRequest
  - `max_concurrent_invocations` integer, nullable: Maximum concurrent app invocations for this project. Set to 0 to remove the cap; omit to leave unchanged.
  - `max_concurrent_sessions` integer, nullable: Maximum concurrent browsers for this project, covering both on-demand sessions and browser pool reservations. Set to 0 to remove the cap; omit to leave unchanged.
  - `max_pooled_sessions` integer, nullable: Deprecated: pooled browsers now count toward `max_concurrent_sessions`. Requests that set this field are rejected with a 400.

## Response `200`

Project limits updated

- ProjectLimits
  - `max_concurrent_invocations` integer, nullable: Maximum concurrent app invocations for this project. Null means no project-level cap.
  - `max_concurrent_sessions` integer, nullable: Maximum concurrent browsers for this project, covering both on-demand sessions (`browsers.create()`) and browser pool reservations. Null means no project-level cap.
  - `max_pooled_sessions` integer, nullable: Deprecated: pooled browsers now count toward `max_concurrent_sessions`. Always null.

## Other responses

- `400`: Bad Request – invalid input
- `401`: Unauthorized – missing or invalid authorization token
- `403`: Forbidden – insufficient permissions or plan
- `404`: Resource not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/kernel/apis/kernel-api.md) - [All operations](https://skmtc.dev/kernel/apis/kernel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kernel/apis/kernel-api/revisions/0f6cf4f58fe6?raw)
