---
title: "Update a document routing rule"
method: PATCH
path: "/routing-rules/{id}"
tags: ["Routing Rules"]
---

# Update a document routing rule

`PATCH /routing-rules/{id}`

## Request

- Base URL: `https://api.pdfparse.net/v1`
- URL: `https://api.pdfparse.net/v1/routing-rules/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string: Scopes replay protection to the authenticated project, method, and route for 24 hours.

## Request body

- object
  - `name` string
  - `prompt` string
  - `confidenceThreshold` integer
  - `tableId` string
  - `enabled` boolean

## Response `200`

Success

- object
  - `id` string, required
  - `name` string, required
  - `prompt` string, required
  - `confidenceThreshold` integer, required
  - `enabled` boolean, required
  - `tableId` string, required
  - `tableName` string, required
  - `tableSlug` string, required
  - `createdAt` string, nullable, required
  - `updatedAt` string, nullable, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Workflow error

---

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