---
title: "PUT /api/database/field-rules/{table_id}/rule/{rule_id}/"
method: PUT
path: "/api/database/field-rules/{table_id}/rule/{rule_id}/"
tags: ["Field rules"]
---

# PUT /api/database/field-rules/{table_id}/rule/{rule_id}/

`PUT /api/database/field-rules/{table_id}/rule/{rule_id}/`

Update a specific field rule.

## Path parameters

- `rule_id` integer, required
- `table_id` integer, required

## Request body

- FieldRulesRequestUpdateFieldRule — Serializes inbound date dependency configuration. Requires `table` in the context.
  - `is_active` boolean, required — Whether the date dependency is active or not. If set to false, all other values in the payload will be ignored.
  - `type` 'date_dependency', required — * `date_dependency` - date_dependency
  - `start_date_field_id` integer — Start date field id
  - `end_date_field_id` integer — End date field id
  - `duration_field_id` integer — Duration field id
  - `dependency_linkrow_field_id` integer, nullable — Linkrow field id

## Response `200`

- FieldRulesResponseFieldRule[]
  - `id` integer, required
  - `table_id` integer, required — The table that this field rule applies to.
  - `is_valid` boolean, required — Tells if the rule is valid in the context of a table. This field is read-only.
  - `error_text` string, nullable, required — Stores information about validation error, if it's present. This field is read-only.
  - `is_active` boolean, required — Whether the date dependency is active or not. If set to false, all other values in the payload will be ignored.
  - `type` 'date_dependency', required — * `date_dependency` - date_dependency
  - `start_date_field_id` integer — Start date field id
  - `end_date_field_id` integer — End date field id
  - `duration_field_id` integer — Duration field id
  - `dependency_linkrow_field_id` integer, nullable — Linkrow field id

## Other responses

- `400`
- `404`

---

[API](https://skmtc.dev/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.dev/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/revisions/f3396317d932/schema)
