diff options
author | Nick Thomas <nick@gitlab.com> | 2018-01-17 14:30:07 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-01-17 14:30:07 +0000 |
commit | 1a3bcc76ea14dda52447a517122117942914ecac (patch) | |
tree | 25ab2c54087e2ee098156f99462460bed39c35de /doc | |
parent | f17d7a4beef61d0156865f1a9070fb53c8f05c99 (diff) | |
download | gitlab-ce-1a3bcc76ea14dda52447a517122117942914ecac.tar.gz |
Fix the user-agent detail API endpoint for project snippets
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/project_snippets.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/api/project_snippets.md b/doc/api/project_snippets.md index ad2521230e6..cc495c5d091 100644 --- a/doc/api/project_snippets.md +++ b/doc/api/project_snippets.md @@ -131,12 +131,13 @@ Available only for admins. GET /projects/:id/snippets/:snippet_id/user_agent_detail ``` -| Attribute | Type | Required | Description | -|-------------|---------|----------|--------------------------------------| -| `id` | Integer | yes | The ID of a snippet | +| Attribute | Type | Required | Description | +|---------------|---------|----------|--------------------------------------| +| `id` | Integer | yes | The ID of a project | +| `snippet_id` | Integer | yes | The ID of a snippet | ```bash -curl --request GET --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/1/snippets/1/user_agent_detail +curl --request GET --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/1/snippets/2/user_agent_detail ``` Example response: |