Create an analytics view.
POST/api/v1/analytics-viewsanalytics:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Creating a public or shared view also needs Share Report Views.
| スコープ | analytics:write |
| 非同期 | いいえ |
| MCP ツール | create_analytics_view |
| Portal の権限 | create_report_views |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | AnalyticsViewCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json AnalyticsView または 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
AnalyticsView
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
analytics_view_id | string | 必須 | |
chart_configs | AnalyticsViewChartConfig の配列 | 必須 | |
custom_field_ids | string の配列 | 必須 | template:field pairs of the custom-field grid columns the view shows. |
description | string または null | 必須 | |
dynamic_filter_defs | AnalyticsViewDynamicFilter の配列 | 必須 | |
is_public | boolean | 必須 | |
name | string | 必須 | |
shares | AnalyticsViewShare の配列 | 必須 | |
static_filters | object または null | 必須 | format analytics_view_filters: the fixed filters, or null. |
AnalyticsViewChartConfig
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
chart_key | string | 必須 | The Workflow Analytics chart this entry shows. |
custom_field_id | string または null | 必須 | |
custom_field_template_id | string または null | 必須 | The custom-field grid's template, when the chart groups by a grid column. |
group_by | string または null | 必須 | |
title | string または null | 必須 |
AnalyticsViewChartConfigInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
chart_key | string | 任意 | The Workflow Analytics chart this entry shows. |
custom_field_id | string または null | 任意 | |
custom_field_template_id | string または null | 任意 | The custom-field grid's template, when the chart groups by a grid column. |
group_by | string または null | 任意 | |
title | string または null | 任意 |
AnalyticsViewCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
chart_configs | AnalyticsViewChartConfigInput の配列 | 任意 | |
custom_field_ids | string の配列 | 任意 | |
description | string または null | 任意 | |
dynamic_filter_defs | AnalyticsViewDynamicFilterInput の配列 | 任意 | |
is_public | boolean | 任意 | |
name | string | 必須 | |
shares | AnalyticsViewShareInput の配列 | 任意 | |
static_filters | object または null | 任意 |
AnalyticsViewDynamicFilter
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
additional_fields | string の配列 | 必須 | |
field | string | 必須 | |
filter_key | string | 必須 | The filter's key within the view. |
label | string | 必須 | |
operator | string | 必須 | |
value_editor_type | string | 必須 | text, date, number or select. |
AnalyticsViewDynamicFilterInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
additional_fields | string の配列 | 任意 | |
field | string | 任意 | |
filter_key | string | 任意 | The filter's key within the view. |
label | string | 任意 | |
operator | string | 任意 | |
value_editor_type | string | 任意 | text, date, number or select. |
AnalyticsViewShare
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_id | string または null | 必須 | The group the view is shared with (share_type group). |
share_type | string | 必須 | user or group. |
user_id | string または null | 必須 | The user the view is shared with (share_type user). |
AnalyticsViewShareInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_id | string または null | 任意 | The group the view is shared with (share_type group). |
share_type | string | 任意 | user or group. |
user_id | string または null | 任意 | The user the view is shared with (share_type user). |