v3

latestOpenAPI 3.0.3MIT2026-07-313881,2455.6 MB
Database table views

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.

patch/api/database/views/{view_id}/default-values/

Path parameters

view_idinteger required

Updates the default row values for the view with the given id.

Headers

ClientSessionIdstring uuid

An optional header that marks the action performed by this request as having occurred in a particular client session. Then using the undo/redo endpoints with the same ClientSessionId header this action can be undone/redone.

Request body

idinteger required
fieldinteger required
enabledboolean

Whether this default value is active.

{"stackTrail":"components:schemas:ViewDefaultValue:properties:value","oasType":"schema","type":"unknown","description":"The raw default value in API request format.","nullable":true}
field_typestring nullable required

The field type identifier at the time the value was stored. Used to detect incompatibility when the field type changes.

functionstring nullable

Optional function name (e.g. 'now') to resolve the default value dynamically at row creation time instead of using the stored value.

Response

idinteger required
fieldinteger required
enabledboolean

Whether this default value is active.

{"stackTrail":"components:schemas:ViewDefaultValue:properties:value","oasType":"schema","type":"unknown","description":"The raw default value in API request format.","nullable":true}
field_typestring nullable required

The field type identifier at the time the value was stored. Used to detect incompatibility when the field type changes.

functionstring nullable

Optional function name (e.g. 'now') to resolve the default value dynamically at row creation time instead of using the stored value.