Projects API: Count children
Endpoint#
Section titled “Endpoint#”| Property | Value |
|---|---|
| Type | query |
| Method | GET |
| Path | /api/external/v1/projects/count_children |
| Handler | OperatelyWeb.Api.Projects.CountChildren |
Authentication#
Section titled “Authentication#”- Requires a valid API token.
- Read-only and full-access tokens can execute this query.
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
id | id primitive (encoded as string) | Yes | No | - |
use_task_id | boolean | No | No | - |
use_milestone_id | boolean | No | No | - |
Outputs#
Section titled “Outputs#”| Field | Type | Required | Nullable |
|---|---|---|---|
children_count | project_children_count object | Yes | No |
cURL Example#
Section titled “cURL Example#”Copied
curl --request GET \
--url "https://app.operately.com/api/external/v1/projects/count_children?id=value&use_milestone_id=true&use_task_id=true" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}"Response Example#
Section titled “Response Example#”{ "children_count": { "check_ins_count": 123, "discussions_count": 123, "docs_and_files_count": 123, "tasks_count": 123 }}