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
fbc9a1ac
Commit
fbc9a1ac
authored
Jun 01, 2018
by
Andrew Winata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs clarify API to share project to a group
parent
50fda506
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
doc/api/members.md
doc/api/members.md
+4
-0
doc/api/projects.md
doc/api/projects.md
+1
-1
No files found.
doc/api/members.md
View file @
fbc9a1ac
...
@@ -173,3 +173,7 @@ DELETE /projects/:id/members/:user_id
...
@@ -173,3 +173,7 @@ DELETE /projects/:id/members/:user_id
curl
--request
DELETE
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/groups/:id/members/:user_id
curl
--request
DELETE
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/groups/:id/members/:user_id
curl
--request
DELETE
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/:id/members/:user_id
curl
--request
DELETE
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/:id/members/:user_id
```
```
## Give a group access to a project
Look at
[
share project with group
](
projects.md#share-project-with-group
)
doc/api/projects.md
View file @
fbc9a1ac
...
@@ -1198,7 +1198,7 @@ POST /projects/:id/share
...
@@ -1198,7 +1198,7 @@ POST /projects/:id/share
| --------- | ---- | -------- | ----------- |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
|
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
|
|
`group_id`
| integer | yes | The ID of the group to share with |
|
`group_id`
| integer | yes | The ID of the group to share with |
|
`group_access`
| integer | yes | The
permissions level
to grant the group |
|
`group_access`
| integer | yes | The
[
permissions level
](
members.md
)
to grant the group |
|
`expires_at`
| string | no | Share expiration date in ISO 8601 format: 2016-09-26 |
|
`expires_at`
| string | no | Share expiration date in ISO 8601 format: 2016-09-26 |
## Delete a shared project link within a group
## Delete a shared project link within a group
...
...
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