Skip to main content

Change an analytics view (JSON Merge Patch).

PATCH/api/v1/analytics-views/{analytics_view_id}analytics:write

Only the creator can change a view.

Scopeanalytics:write
AsynchronousNo
MCP toolupdate_analytics_view
Portal permissionsedit_report_views

Parameters​

NameInTypeRequiredDescription
analytics_view_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonAnalyticsViewPatchInput
application/merge-patch+jsonAnalyticsViewPatchInput

Responses​

StatusDescriptionBody
200Success.application/json AnalyticsView or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

AnalyticsView​

FieldTypeRequiredDescription
analytics_view_idstringRequired
chart_configsarray of AnalyticsViewChartConfigRequired
custom_field_idsarray of stringRequiredtemplate:field pairs of the custom-field grid columns the view shows.
descriptionstring or nullRequired
dynamic_filter_defsarray of AnalyticsViewDynamicFilterRequired
is_publicbooleanRequired
namestringRequired
sharesarray of AnalyticsViewShareRequired
static_filtersobject or nullRequiredformat analytics_view_filters: the fixed filters, or null.

AnalyticsViewChartConfig​

FieldTypeRequiredDescription
chart_keystringRequiredThe Workflow Analytics chart this entry shows.
custom_field_idstring or nullRequired
custom_field_template_idstring or nullRequiredThe custom-field grid's template, when the chart groups by a grid column.
group_bystring or nullRequired
titlestring or nullRequired

AnalyticsViewChartConfigInput​

FieldTypeRequiredDescription
chart_keystringOptionalThe Workflow Analytics chart this entry shows.
custom_field_idstring or nullOptional
custom_field_template_idstring or nullOptionalThe custom-field grid's template, when the chart groups by a grid column.
group_bystring or nullOptional
titlestring or nullOptional

AnalyticsViewDynamicFilter​

FieldTypeRequiredDescription
additional_fieldsarray of stringRequired
fieldstringRequired
filter_keystringRequiredThe filter's key within the view.
labelstringRequired
operatorstringRequired
value_editor_typestringRequiredtext, date, number or select.

AnalyticsViewDynamicFilterInput​

FieldTypeRequiredDescription
additional_fieldsarray of stringOptional
fieldstringOptional
filter_keystringOptionalThe filter's key within the view.
labelstringOptional
operatorstringOptional
value_editor_typestringOptionaltext, date, number or select.

AnalyticsViewPatchInput​

FieldTypeRequiredDescription
analytics_view_idstring or nullOptional
chart_configsarray of AnalyticsViewChartConfigInput or nullOptional
custom_field_idsarray of string or nullOptional
descriptionstring or nullOptional
dynamic_filter_defsarray of AnalyticsViewDynamicFilterInput or nullOptional
is_publicboolean or nullOptional
namestring or nullOptional
sharesarray of AnalyticsViewShareInput or nullOptional
static_filtersobject or nullOptional

AnalyticsViewShare​

FieldTypeRequiredDescription
group_idstring or nullRequiredThe group the view is shared with (share_type group).
share_typestringRequireduser or group.
user_idstring or nullRequiredThe user the view is shared with (share_type user).

AnalyticsViewShareInput​

FieldTypeRequiredDescription
group_idstring or nullOptionalThe group the view is shared with (share_type group).
share_typestringOptionaluser or group.
user_idstring or nullOptionalThe user the view is shared with (share_type user).