Change a dataview's display settings (JSON Merge Patch).
PATCH/api/v1/dataviews/{dataview_id}dataviews:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | dataviews:write |
| 非同期 | いいえ |
| MCP ツール | update_dataview |
| Portal の権限 | edit_dataview_settings |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
dataview_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | DataviewPatchInput |
application/merge-patch+json | DataviewPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json Dataview または 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
Dataview
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
columns | DataviewColumn の配列 | 必須 | The columns the dataview returns, in order. |
dataview_id | string | 必須 | |
group | string | 必須 | |
health | DataviewHealth | 必須 | |
name | string | 必須 | |
settings | object または null | 必須 | format dataview_settings: the dataview's own configuration. |
DataviewColumn
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
custom_field_id | string または null | 必須 | |
key | string | 必須 | |
name | string | 必須 | |
type | string | 必須 |
DataviewColumnInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
custom_field_id | string または null | 任意 | |
key | string | 任意 | |
name | string | 任意 | |
type | string | 任意 |
DataviewHealth
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
last_error_at | string (date-time) または null | 必須 |
DataviewPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
columns | DataviewColumnInput の配列 または null | 任意 | |
dataview_id | string または null | 任意 | |
group | string または null | 任意 | |
health | object または null | 任意 | |
name | string または null | 任意 | |
settings | object または null | 任意 |