summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2019-08-28 09:53:50 +0800
committerPatrick Bajao <ebajao@gitlab.com>2019-08-30 10:40:18 +0800
commit32ec0b7ac9975244a7cfe0872cc76a9f7ae780ce (patch)
treef7a9ef8833164a9eaace46c8005d0ee2d81d7d65
parentefbc7a39da14634105596a964e530530f7178058 (diff)
downloadgitlab-ce-32ec0b7ac9975244a7cfe0872cc76a9f7ae780ce.tar.gz
Doc: Fix type of users and groups params
-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 e60560d5625..84b623f1254 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` | integer | no | The ids of users as approvers |
-| `groups` | integer | no | The ids of groups as approvers |
+| `users` | Array | no | The ids of users as approvers |
+| `groups` | 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` | integer | no | The ids of users as approvers |
-| `groups` | integer | no | The ids of groups as approvers |
+| `users` | Array | no | The ids of users as approvers |
+| `groups` | 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` | integer | no | The ids of users as approvers |
-| `groups` | integer | no | The ids of groups as approvers |
+| `users` | Array | no | The ids of users as approvers |
+| `groups` | 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` | integer | no | The ids of users as approvers |
-| `groups` | integer | no | The ids of groups as approvers |
+| `users` | Array | no | The ids of users as approvers |
+| `groups` | Array | no | The ids of groups as approvers |
```json
{