Count the projects by project type or by status.
POST/api/v1/projects/aggregateprojects:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
group_by is project_type or project_status. One group per value that visible projects hold, with how many; the counts the List Manager shows before a type or status is edited or deleted, but only over the projects the caller can see. Needs View Project Details. list_projects with project_type_id or project_status_id lists the projects of one group.
| スコープ | projects:read |
| 非同期 | いいえ |
| MCP ツール | aggregate_projects |
| Portal の権限 | view_project_details |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | ProjectAggregateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json ProjectAggregateResult |
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 |
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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
ProjectAggregateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_by | string | 必須 | project_type or project_status. |
ProjectAggregateResult
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_by | string | 必須 | |
groups | ProjectGroup の配列 | 必須 | One group per stored value, including the projects that hold none; a stored name that matches no list entry has a null ID. |
ProjectGroup
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
project_count | integer | 必須 | The projects the caller can see that hold it. ≥ -2147483648; ≤ 2147483647 |
project_status | object または null | 必須 | The project status, when grouping by project_status; null for projects with none, and when grouping by type. |
project_type | object または null | 必須 | The project type, when grouping by project_type; null for projects with none, and when grouping by status. |