Change an analytics view (JSON Merge Patch).
PATCH/api/v1/analytics-views/{analytics_view_id}analytics:write
Only the creator can change a view.
| Scope | analytics:write |
| Asynchronous | No |
| MCP tool | update_analytics_view |
| Portal permissions | edit_report_views |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
analytics_view_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | AnalyticsViewPatchInput |
application/merge-patch+json | AnalyticsViewPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json AnalyticsView 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 |
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
AnalyticsView
| Field | Type | Required | Description |
|---|---|---|---|
analytics_view_id | string | Required | |
chart_configs | array of AnalyticsViewChartConfig | Required | |
custom_field_ids | array of string | Required | template:field pairs of the custom-field grid columns the view shows. |
description | string or null | Required | |
dynamic_filter_defs | array of AnalyticsViewDynamicFilter | Required | |
is_public | boolean | Required | |
name | string | Required | |
shares | array of AnalyticsViewShare | Required | |
static_filters | object or null | Required | format analytics_view_filters: the fixed filters, or null. |
AnalyticsViewChartConfig
| Field | Type | Required | Description |
|---|---|---|---|
chart_key | string | Required | The Workflow Analytics chart this entry shows. |
custom_field_id | string or null | Required | |
custom_field_template_id | string or null | Required | The custom-field grid's template, when the chart groups by a grid column. |
group_by | string or null | Required | |
title | string or null | Required |
AnalyticsViewChartConfigInput
| Field | Type | Required | Description |
|---|---|---|---|
chart_key | string | Optional | The Workflow Analytics chart this entry shows. |
custom_field_id | string or null | Optional | |
custom_field_template_id | string or null | Optional | The custom-field grid's template, when the chart groups by a grid column. |
group_by | string or null | Optional | |
title | string or null | Optional |
AnalyticsViewDynamicFilter
| Field | Type | Required | Description |
|---|---|---|---|
additional_fields | array of string | Required | |
field | string | Required | |
filter_key | string | Required | The filter's key within the view. |
label | string | Required | |
operator | string | Required | |
value_editor_type | string | Required | text, date, number or select. |
AnalyticsViewDynamicFilterInput
| Field | Type | Required | Description |
|---|---|---|---|
additional_fields | array of string | Optional | |
field | string | Optional | |
filter_key | string | Optional | The filter's key within the view. |
label | string | Optional | |
operator | string | Optional | |
value_editor_type | string | Optional | text, date, number or select. |
AnalyticsViewPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
analytics_view_id | string or null | Optional | |
chart_configs | array of AnalyticsViewChartConfigInput or null | Optional | |
custom_field_ids | array of string or null | Optional | |
description | string or null | Optional | |
dynamic_filter_defs | array of AnalyticsViewDynamicFilterInput or null | Optional | |
is_public | boolean or null | Optional | |
name | string or null | Optional | |
shares | array of AnalyticsViewShareInput or null | Optional | |
static_filters | object or null | Optional |
AnalyticsViewShare
| Field | Type | Required | Description |
|---|---|---|---|
group_id | string or null | Required | The group the view is shared with (share_type group). |
share_type | string | Required | user or group. |
user_id | string or null | Required | The user the view is shared with (share_type user). |
AnalyticsViewShareInput
| Field | Type | Required | Description |
|---|---|---|---|
group_id | string or null | Optional | The group the view is shared with (share_type group). |
share_type | string | Optional | user or group. |
user_id | string or null | Optional | The user the view is shared with (share_type user). |