diff options
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/api_resources.md | 2 | ||||
-rw-r--r-- | doc/api/group_activity_analytics.md | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/doc/api/api_resources.md b/doc/api/api_resources.md index fea30a2721a..34d2c40d1f9 100644 --- a/doc/api/api_resources.md +++ b/doc/api/api_resources.md @@ -120,7 +120,7 @@ The following API resources are available outside of project and group contexts | [Events](events.md) | `/events`, `/users/:id/events` (also available for projects) | | [Feature flags](features.md) | `/features` | | [Geo Nodes](geo_nodes.md) **(PREMIUM ONLY)** | `/geo_nodes` | -| [Group Activity Analytics](group_activity_analytics.md) **(STARTER)** | `/analytics/group_activity/{issues_count | merge_requests_count}` | +| [Group Activity Analytics](group_activity_analytics.md) **(STARTER)** | `/analytics/group_activity/{issues_count | merge_requests_count | new_members_count }` | | [Import repository from GitHub](import.md) | `/import/github` | | [Issues](issues.md) | `/issues` (also available for groups and projects) | | [Issues Statistics](issues_statistics.md) | `/issues_statistics` (also available for groups and projects) | diff --git a/doc/api/group_activity_analytics.md b/doc/api/group_activity_analytics.md index 23dcb46dbc5..a211097e30b 100644 --- a/doc/api/group_activity_analytics.md +++ b/doc/api/group_activity_analytics.md @@ -49,3 +49,27 @@ Example response: ```json { "merge_requests_count": 10 } ``` + +## Get count of members recently added to group + +```plaintext +GET /analytics/group_activity/new_members_count +``` + +Parameters: + +| Attribute | Type | Required | Description | +| --------- | ---- | -------- | ----------- | +| `group_path` | string | yes | Group path | + +Example request: + +```shell +curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/analytics/group_activity/new_members_count?group_path=gitlab-org +``` + +Example response: + +```json +{ "new_members_count": 10 } +``` |