Commit 39d1e4ac authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'master' into 'master'

Issue #21440: Small fix to curl example for adding member to project

## What does this MR do?
Two lines changed in docs to move the user_id field out of the url and onto the query string 

## Why was this MR needed?
Issue #21440 reported under Issues. The documentation example for adding members to a project had a slight problem. 

## What are the relevant issue numbers?
Closes #21440.

See merge request !6236
parents 5e669170 aaaa781a
...@@ -110,8 +110,8 @@ POST /projects/:id/members ...@@ -110,8 +110,8 @@ POST /projects/:id/members
| `expires_at` | string | no | A date string in the format YEAR-MONTH-DAY | | `expires_at` | string | no | A date string in the format YEAR-MONTH-DAY |
```bash ```bash
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/groups/:id/members/:user_id?access_level=30 curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --data "user_id=1&access_level=30" https://gitlab.example.com/api/v3/groups/:id/members
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/:id/members/:user_id?access_level=30 curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --data "user_id=1&access_level=30" https://gitlab.example.com/api/v3/projects/:id/members
``` ```
Example response: Example response:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment