---
title: "Update a validation rule"
method: PATCH
path: "/api/v3/oligo-duplex-schema/{oligo_duplex_schema_id}:update-validation-rule"
tags: ["Oligo Duplex Schema"]
---

# Update a validation rule

`PATCH /api/v3/oligo-duplex-schema/{oligo_duplex_schema_id}:update-validation-rule`

## Request

- Base URL: `https://{tenant_name}.benchling.com`
- URL: `https://{tenant_name}.benchling.com/api/v3/oligo-duplex-schema/{oligo_duplex_schema_id}:update-validation-rule`
- Auth: HTTP bearer

Updates given validation rule, and performs any registered hooks

## Path parameters

- `oligo_duplex_schema_id` string, required

## Headers

- `EARLY-ACCESS` string

## Request body

- UpdateValidationRuleInput
  - `archive` boolean
  - `archiveReason` string
  - `definition` string
  - `description` string
  - `errorMessage` string
  - `name` string
  - `validationRuleId` string, required

## Response `200`

OK

- UpdateValidationRuleOutput: Output Type for :update_validation_rule custom method
  - `validationRuleId` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests
- `500`: Internal Server Error

---

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