summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-01-18 11:18:44 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-01-18 11:18:44 +0000
commitd617c24f59f9cc1c068301ec755caa2de6cd6b73 (patch)
tree485ab910acbd4045a72172ce005aaac9b8a3eaf9 /doc
parent2af0b083c6791f50681a1afdae3d59e703c693b5 (diff)
parent1a3bcc76ea14dda52447a517122117942914ecac (diff)
downloadgitlab-ce-d617c24f59f9cc1c068301ec755caa2de6cd6b73.tar.gz
Merge branch '42129-fix-project-snippet-user-agent-detail' into 'master'
Fix the user-agent detail API endpoint for project snippets Closes #42129 See merge request gitlab-org/gitlab-ce!16521
Diffstat (limited to 'doc')
-rw-r--r--doc/api/project_snippets.md9
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: