Skip to main content

Create an analytics view.

POST/api/v1/analytics-viewsanalytics:write

Creating a public or shared view also needs Share Report Views.

Scopeanalytics:write
AsynchronousNo
MCP toolcreate_analytics_view
Portal permissionscreate_report_views

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonAnalyticsViewCreateInput

Responses​

StatusDescriptionBody
201Success.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
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_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

AnalyticsViewCreateInput​

FieldTypeRequiredDescription
chart_configsarray of AnalyticsViewChartConfigInputOptional
custom_field_idsarray of stringOptional
descriptionstring or nullOptional
dynamic_filter_defsarray of AnalyticsViewDynamicFilterInputOptional
is_publicbooleanOptional
namestringRequired
sharesarray of AnalyticsViewShareInputOptional
static_filtersobject 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.

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).