diff options
Diffstat (limited to 'doc/api/groups.md')
-rw-r--r-- | doc/api/groups.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/api/groups.md b/doc/api/groups.md index f2dd9ab81b6..c1556fb8e79 100644 --- a/doc/api/groups.md +++ b/doc/api/groups.md @@ -1170,10 +1170,14 @@ DELETE /groups/:id/share/:group_id ## Push Rules **(STARTER)** +> Introduced in [GitLab Starter](https://about.gitlab.com/pricing/) 13.4. + ### Get group push rules **(STARTER)** Get the [push rules](../user/group/index.md#group-push-rules-starter) of a group. +Only available to group owners and administrators. + ```plaintext GET /groups/:id/push_rule ``` @@ -1215,6 +1219,8 @@ the `commit_committer_check` and `reject_unsigned_commits` parameters: Adds [push rules](../user/group/index.md#group-push-rules-starter) to the specified group. +Only available to group owners and administrators. + ```plaintext POST /groups/:id/push_rule ``` @@ -1260,6 +1266,8 @@ Response: Edit push rules for a specified group. +Only available to group owners and administrators. + ```plaintext PUT /groups/:id/push_rule ``` @@ -1300,3 +1308,17 @@ Response: "max_file_size": 100 } ``` + +### Delete group push rule **(STARTER)** + +Deletes the [push rules](../user/group/index.md#group-push-rules-starter) of a group. + +Only available to group owners and administrators. + +```plaintext +DELETE /groups/:id/push_rule +``` + +| Attribute | Type | Required | Description | +| --------- | ---- | -------- | ----------- | +| `id` | integer/string | yes | The ID or [URL-encoded path of the group](README.md#namespaced-path-encoding) | |