Change a dataview's display settings (JSON Merge Patch).
PATCH/api/v1/dataviews/{dataview_id}dataviews:write
settings is the dataview_settings document GET returns; only the members it sends change, and null clears one to its default. The dataview's SQL, view and access list are never changed. Needs Edit Dataview Settings. embed and edit_allowed set to true need confirm: true.
| Scope | dataviews:write |
| Asynchronous | No |
| MCP tool | update_dataview |
| Portal permissions | edit_dataview_settings |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dataview_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | DataviewPatchInput |
application/merge-patch+json | DataviewPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json Dataview or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
Dataview
| Field | Type | Required | Description |
|---|---|---|---|
columns | array of DataviewColumn | Required | The columns the dataview returns, in order. |
dataview_id | string | Required | |
group | string | Required | |
health | DataviewHealth | Required | |
name | string | Required | |
settings | object or null | Required | format dataview_settings: the dataview's own configuration. |
DataviewColumn
| Field | Type | Required | Description |
|---|---|---|---|
custom_field_id | string or null | Required | |
key | string | Required | |
name | string | Required | |
type | string | Required |
DataviewColumnInput
| Field | Type | Required | Description |
|---|---|---|---|
custom_field_id | string or null | Optional | |
key | string | Optional | |
name | string | Optional | |
type | string | Optional |
DataviewHealth
| Field | Type | Required | Description |
|---|---|---|---|
last_error_at | string (date-time) or null | Required |
DataviewPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
columns | array of DataviewColumnInput or null | Optional | |
dataview_id | string or null | Optional | |
group | string or null | Optional | |
health | object or null | Optional | |
name | string or null | Optional | |
settings | object or null | Optional |