---
title: "SDK: prroutes"
description: "The prroutes methods of the Overlane TypeScript SDK, with their signatures. Generated from the SDK types."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.overlane.app/llms.txt
> Use this file to discover all available pages before exploring further.

# SDK: prroutes

{/* Generated by apps/docs/scripts/generate.mjs (SDK pages from the TypeScript types in packages/sdk). Do not edit; run `pnpm --filter @overlane/docs gen`. */}

The `prroutes` area has 6 methods on the client. Each takes one object of path, query and body arguments and an optional `CallOptions`, and returns a promise of the response body. A refused call rejects with `OverlaneApiError` (see the [SDK index](/sdk/)).

## prroutesApprove

Approve a pull request in its lane (independence rules apply)

- Request: `POST` on `/v1/tenants/{tenantId}/projects/{projectId}/pr-routes/approve`

```ts
prroutesApprove(args: { tenantId: string; projectId: string; body: RouteApproveRequest }, options?: CallOptions): Promise<Record<string, unknown>>
```

## prroutesBatch

Batches of small pull requests

- Request: `GET` on `/v1/tenants/{tenantId}/projects/{projectId}/pr-routes/batch`

```ts
prroutesBatch(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<Record<string, unknown>>
```

## prroutesList

Pull requests with their routed lane

- Request: `GET` on `/v1/tenants/{tenantId}/projects/{projectId}/pr-routes`

```ts
prroutesList(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<Record<string, unknown>>
```

## prroutesPolicyGet

Read the project's pull request routing policy

- Request: `GET` on `/v1/tenants/{tenantId}/projects/{projectId}/pr-routes/policy`

```ts
prroutesPolicyGet(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<Record<string, unknown>>
```

## prroutesPolicyPut

Change the project's pull request routing policy

- Request: `PUT` on `/v1/tenants/{tenantId}/projects/{projectId}/pr-routes/policy`
- Needs an approval for agents: class `policy_change`

```ts
prroutesPolicyPut(args: { tenantId: string; projectId: string; body: PutRoutingPolicyRequest }, options?: CallOptions): Promise<Record<string, unknown>>
```

## prroutesRoute

Route a pull request to a lane by risk

- Request: `POST` on `/v1/tenants/{tenantId}/projects/{projectId}/pr-routes/route`

```ts
prroutesRoute(args: { tenantId: string; projectId: string; body: RoutePrRequest }, options?: CallOptions): Promise<StoredRoute>
```

Source: https://docs.overlane.app/sdk/prroutes/index.mdx
