summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-11-23 15:17:59 +0000
committerRémy Coutable <remy@rymai.me>2016-11-23 15:17:59 +0000
commit010790ee39069f82ced551db6a98f9234c5c81f7 (patch)
tree571b2cf65f9cc68cd797857c0a0bee200fbfef00 /doc
parentae4cc429a09d05a9bdfa7682bc6df9820786e2c1 (diff)
parenteff1b05ab1d50895be668be12de8239def648d97 (diff)
downloadgitlab-ce-010790ee39069f82ced551db6a98f9234c5c81f7.tar.gz
Merge branch 'api-delete-group-share' into 'master'
API: Add endpoint to delete a group share Closes #24771 See merge request !7662
Diffstat (limited to 'doc')
-rw-r--r--doc/api/projects.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 467a880ac13..de5d3b07c21 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -1074,6 +1074,25 @@ Parameters:
| `group_access` | integer | yes | The permissions level to grant the group |
| `expires_at` | string | no | Share expiration date in ISO 8601 format: 2016-09-26 |
+### Delete a shared project link within a group
+
+Unshare the project from the group. Returns `204` and no content on success.
+
+```
+DELETE /projects/:id/share/:group_id
+```
+
+Parameters:
+
+| Attribute | Type | Required | Description |
+| --------- | ---- | -------- | ----------- |
+| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
+| `group_id` | integer | yes | The ID of the group |
+
+```bash
+curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/share/17
+```
+
## Hooks
Also called Project Hooks and Webhooks.