---
title: "PATCH /api/database/views/{view_id}/default-values/"
method: PATCH
path: "/api/database/views/{view_id}/default-values/"
tags: ["Database table views"]
---

# PATCH /api/database/views/{view_id}/default-values/

`PATCH /api/database/views/{view_id}/default-values/`

Updates the default row values for the specified view. Accepts a list of default value objects, each specifying the field, whether the default is enabled, an optional raw value, and an optional function name (e.g. 'now') for dynamic defaults.

## Path parameters

- `view_id` integer, required

## Headers

- `ClientSessionId` string, uuid

## Request body

- ViewDefaultValue[]
  - `id` integer, required
  - `field` integer, required
  - `enabled` boolean — Whether this default value is active.
  - `value` unknown
  - `field_type` string, nullable, required — The field type identifier at the time the value was stored. Used to detect incompatibility when the field type changes.
  - `function` string, nullable — Optional function name (e.g. 'now') to resolve the default value dynamically at row creation time instead of using the stored value.

## Response `200`

- ViewDefaultValue[]
  - `id` integer, required
  - `field` integer, required
  - `enabled` boolean — Whether this default value is active.
  - `value` unknown
  - `field_type` string, nullable, required — The field type identifier at the time the value was stored. Used to detect incompatibility when the field type changes.
  - `function` string, nullable — Optional function name (e.g. 'now') to resolve the default value dynamically at row creation time instead of using the stored value.

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
