Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
064bf62b
Commit
064bf62b
authored
Jun 03, 2020
by
Jean du Plessis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use different API call example to not mention whitelist
parent
eb63ad83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
doc/development/documentation/styleguide.md
doc/development/documentation/styleguide.md
+2
-3
No files found.
doc/development/documentation/styleguide.md
View file @
064bf62b
...
...
@@ -1723,9 +1723,8 @@ Use `%2F` for slashes (`/`).
#### Pass arrays to API calls
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
`example.net`
, you would do something like this:
exclude specific users when requesting a list of users for a project, you would do something like this:
```
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/setting
s
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>/user
s
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment