Create an analytics view.
POST/api/v1/analytics-viewsanalytics:write
Creating a public or shared view also needs Share Report Views.
| Scope | analytics:write |
| Asynchronous | No |
| MCP tool | create_analytics_view |
| Portal permissions | create_report_views |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | AnalyticsViewCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | 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 |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | idempotency_in_progress | 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 | idempotency_key_reused, 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 |
AnalyticsViewCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
chart_configs | array of AnalyticsViewChartConfigInput | Optional | |
custom_field_ids | array of string | Optional | |
description | string or null | Optional | |
dynamic_filter_defs | array of AnalyticsViewDynamicFilterInput | Optional | |
is_public | boolean | Optional | |
name | string | Required | |
shares | array of AnalyticsViewShareInput | Optional | |
static_filters | object 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. |
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). |