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.

Servers

Path parameters

Name Type Required Description
view_id Integer Yes

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

Request headers

Name Type Required Description
ClientSessionId String No

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.

Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
[] Array Yes
[].id Integer Yes
[].field Integer Yes
[].function String No

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

[].field_type String Yes

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

[].enabled Boolean No

Whether this default value is active.

Default value: true

[].value No

The raw default value in API request format.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.