メインコンテンツまでスキップ

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-Versionheaderstring (date)任意

リクエスト本文​

Content-Type型
application/jsonProjectAggregateInput

応答​

ステータス説明本文
200Success.application/json ProjectAggregateResult
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
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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

ProjectAggregateInput​

フィールド型必須説明
group_bystring必須project_type or project_status.

ProjectAggregateResult​

フィールド型必須説明
group_bystring必須
groupsProjectGroup の配列必須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_countinteger必須The projects the caller can see that hold it. ≥ -2147483648; ≤ 2147483647
project_statusobject または null必須The project status, when grouping by project_status; null for projects with none, and when grouping by type.
project_typeobject または null必須The project type, when grouping by project_type; null for projects with none, and when grouping by status.