Turn the review of a project's agents' pull requests on or off
curl --request PUT \ --url https://example.com/api/v1/projects/example/agent-reviews \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "monthlySecurityAudit": true, "qaOnReviewStatus": true, "reviewAgentPullRequests": true, "reviewTeamPullRequests": true }'Each switch left out keeps its value. Turning reviewAgentPullRequests on spends money on every pull request an agent opens in the project, up to the review and ticket limits; reviewTeamPullRequests spends it on every pull request a team member opens that links one of the project’s tickets (the ticket’s link in the pull request description, else a ticket whose Pull request field is the pull request’s address; a pull request that maps to two or more tickets is not reviewed); qaOnReviewStatus spends it on a QA pass of each ticket that reaches the review status; monthlySecurityAudit spends it on a monthly read-only audit of the linked repository. Each adds its agent to the project’s members; the response says so in agentAdded. Turning one off leaves the agent a member. Refused with 422 when the agent is not installed. Requires projects.manage and tasks.delegate and a project the caller reaches.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
True to audit the project’s linked repository for security every month, read-only, which spends money; false to stop. Omit to keep it
True to run a QA pass when a ticket reaches the project’s review status, which spends money and needs that status mapped in the delegation statuses; false to stop. Omit to keep it
True to review the pull requests this project’s agents open, which spends money; false to stop. Omit to keep it
True to also review the pull requests the team’s own people open, found through the ticket link in the pull request description or the ticket’s Pull request field, which spends money; false to stop. Omit to keep it
Example generated
{ "monthlySecurityAudit": true, "qaOnReviewStatus": true, "reviewAgentPullRequests": true, "reviewTeamPullRequests": true}Responses
Section titled “Responses”The review settings after the change.
object
A project’s review settings after a change.
object
True when switching on added the Code review agent to the project’s members
The monthly security audit; absent on an older server
object
What the Security agent spent this UTC month
Whether the project’s repository is audited every month
What this project’s audits spent this UTC month
Whether the caller may switch reviews on or off
Whether GitHub can deliver pull request events to this instance
Whether the project has a linked repository
The QA pass of a ticket reaching review; absent on an older server
object
What the QA agent spent this UTC month
Whether a ticket reaching the review status gets a QA pass
Whether agents’ pull requests are reviewed
object
The agent’s monthly limit
What the Code review agent spent this UTC month
What this project’s reviews spent this UTC month
The most one review may spend, in dollars
The most all reviews of one ticket may spend
The review of the team’s own pull requests, found through their ticket link; absent on an older server
Example generated
{ "data": { "agent": { "canOpenProject": true, "id": "example", "name": "example" }, "agentAdded": true, "audit": { "agent": { "canOpenProject": true, "id": "example", "name": "example" }, "agentMonthUsd": 1, "enabledBy": { "id": "example", "name": "example" }, "isOn": true, "projectMonthUsd": 1 }, "canChange": true, "enabledAt": "2026-04-15T12:00:00Z", "enabledBy": { "id": "example", "name": "example" }, "githubReachable": true, "hasRepository": true, "projectId": "example", "qa": { "agent": { "canOpenProject": true, "id": "example", "name": "example" }, "agentMonthUsd": 1, "enabledBy": { "id": "example", "name": "example" }, "isOn": true, "reviewStatus": { "id": "example", "name": "example" } }, "reviewAgentPullRequests": true, "spend": { "agentMonthLimitUsd": 1, "agentMonthUsd": 1, "projectMonthUsd": 1, "reviewLimitUsd": 1, "ticketLimitUsd": 1 }, "team": { "enabledBy": { "id": "example", "name": "example" }, "isOn": true } }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC