diff options
author | Rémy Coutable <remy@rymai.me> | 2016-11-23 15:17:59 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-11-23 15:17:59 +0000 |
commit | 010790ee39069f82ced551db6a98f9234c5c81f7 (patch) | |
tree | 571b2cf65f9cc68cd797857c0a0bee200fbfef00 /doc | |
parent | ae4cc429a09d05a9bdfa7682bc6df9820786e2c1 (diff) | |
parent | eff1b05ab1d50895be668be12de8239def648d97 (diff) | |
download | gitlab-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.md | 19 |
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. |