Commit 064bf62b authored by Jean du Plessis's avatar Jean du Plessis

Use different API call example to not mention whitelist

parent eb63ad83
...@@ -1723,9 +1723,8 @@ Use `%2F` for slashes (`/`). ...@@ -1723,9 +1723,8 @@ Use `%2F` for slashes (`/`).
#### Pass arrays to API calls #### Pass arrays to API calls
The GitLab API sometimes accepts arrays of strings or integers. For example, to The GitLab API sometimes accepts arrays of strings or integers. For example, to
restrict the sign-up e-mail domains of a GitLab instance to `*.example.com` and exclude specific users when requesting a list of users for a project, you would do something like this:
`example.net`, you would do something like this:
```shell ```shell
curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" --data "domain_whitelist[]=*.example.com" --data "domain_whitelist[]=example.net" https://gitlab.example.com/api/v4/application/settings curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" --data "skip_users[]=<user_id>" --data "skip_users[]=<user_id>" https://gitlab.example.com/api/v4/projects/<project_id>/users
``` ```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment