Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
aaaa781a
Commit
aaaa781a
authored
Sep 06, 2016
by
Jonny McCullagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21440: Fix to curl example for adding member to project
parent
1e042ac2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/api/members.md
doc/api/members.md
+2
-2
No files found.
doc/api/members.md
View file @
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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment