summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2019-08-29 10:30:49 +0800
committerPatrick Bajao <ebajao@gitlab.com>2019-08-30 10:40:18 +0800
commit32900bbfc440b9948f8ac26c04f254b9619769d4 (patch)
treef236c8477c86b30e859714c507fb219b7375bd1e /doc
parent32ec0b7ac9975244a7cfe0872cc76a9f7ae780ce (diff)
downloadgitlab-ce-32900bbfc440b9948f8ac26c04f254b9619769d4.tar.gz
Doc: Update POST/PUT endpoints to use *_ids params
Diffstat (limited to 'doc')
-rw-r--r--doc/api/merge_request_approvals.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/api/merge_request_approvals.md b/doc/api/merge_request_approvals.md
index 84b623f1254..7dae1b25658 100644
--- a/doc/api/merge_request_approvals.md
+++ b/doc/api/merge_request_approvals.md
@@ -152,8 +152,8 @@ POST /projects/:id/approval_rules
| `id` | integer | yes | The ID of a project |
| `name` | string | yes | The name of the approval rule |
| `approvals_required` | integer | yes | The number of required approvals for this rule |
-| `users` | Array | no | The ids of users as approvers |
-| `groups` | Array | no | The ids of groups as approvers |
+| `user_ids` | Array | no | The ids of users as approvers |
+| `group_ids` | Array | no | The ids of groups as approvers |
```json
{
@@ -231,8 +231,8 @@ PUT /projects/:id/approval_rules/:approval_rule_id
| `approval_rule_id` | integer | yes | The ID of a approval rule |
| `name` | string | yes | The name of the approval rule |
| `approvals_required` | integer | yes | The number of required approvals for this rule |
-| `users` | Array | no | The ids of users as approvers |
-| `groups` | Array | no | The ids of groups as approvers |
+| `user_ids` | Array | no | The ids of users as approvers |
+| `group_ids` | Array | no | The ids of groups as approvers |
```json
{
@@ -701,8 +701,8 @@ POST /projects/:id/merge_requests/:merge_request_iid/approval_rules
| `name` | string | yes | The name of the approval rule |
| `approvals_required` | integer | yes | The number of required approvals for this rule |
| `approval_project_rule_id` | integer | no | The ID of a project-level approval rule |
-| `users` | Array | no | The ids of users as approvers |
-| `groups` | Array | no | The ids of groups as approvers |
+| `user_ids` | Array | no | The ids of users as approvers |
+| `group_ids` | Array | no | The ids of groups as approvers |
**Important:** When `approval_project_rule_id` is set, the `name`, `users` and
`groups` of project-level rule will be copied. The `approvals_required` specified
@@ -789,8 +789,8 @@ These are system generated rules.
| `approval_rule_id` | integer | yes | The ID of a approval rule |
| `name` | string | yes | The name of the approval rule |
| `approvals_required` | integer | yes | The number of required approvals for this rule |
-| `users` | Array | no | The ids of users as approvers |
-| `groups` | Array | no | The ids of groups as approvers |
+| `user_ids` | Array | no | The ids of users as approvers |
+| `group_ids` | Array | no | The ids of groups as approvers |
```json
{