Skip to main content

Count the projects by project type or by status.

POST/api/v1/projects/aggregateprojects:read

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.

Scopeprojects:read
AsynchronousNo
MCP toolaggregate_projects
Portal permissionsview_project_details

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonProjectAggregateInput

Responses​

StatusDescriptionBody
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

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

ProjectAggregateInput​

FieldTypeRequiredDescription
group_bystringRequiredproject_type or project_status.

ProjectAggregateResult​

FieldTypeRequiredDescription
group_bystringRequired
groupsarray of ProjectGroupRequiredOne group per stored value, including the projects that hold none; a stored name that matches no list entry has a null ID.

ProjectGroup​

FieldTypeRequiredDescription
project_countintegerRequiredThe projects the caller can see that hold it. ≥ -2147483648; ≤ 2147483647
project_statusobject or nullRequiredThe project status, when grouping by project_status; null for projects with none, and when grouping by type.
project_typeobject or nullRequiredThe project type, when grouping by project_type; null for projects with none, and when grouping by status.