-`default_projects_limit` - project limit per user
| `default_projects_limit` | integer | no | Project limit per user. Default is `10` |
-`signup_enabled` - enable registration
| `signup_enabled` | boolean | no | Enable registration. Default is `true`. |
-`signin_enabled` - enable login via GitLab account
| `signin_enabled` | boolean | no | Enable login via a GitLab account. Default is `true`. |
-`gravatar_enabled` - enable gravatar
| `gravatar_enabled` | boolean | no | Enable Gravatar |
-`sign_in_text` - text on login page
| `sign_in_text` | string | no | Text on login page |
-`home_page_url` - redirect to this URL when not logged in
| `home_page_url` | string | no | Redirect to this URL when not logged in |
-`default_branch_protection` - determine if developers can push to master
| `default_branch_protection` | integer | no | Determine if developers can push to master. Can take `0` _(not protected, both developers and masters can push new commits, force push or delete the branch)_, `1` _(partially protected, developers can push new commits, but cannot force push or delete the branch, masters can do anything)_ or `2` _(fully protected, developers cannot push new commits, force push or delete the branch, masters can do anything)_ as a parameter. Default is `1`. |
-`twitter_sharing_enabled` - allow users to share project creation in twitter
| `twitter_sharing_enabled` | boolean | no | Allow users to share project creation on Twitter |
-`restricted_visibility_levels` - restrict certain visibility levels
| `restricted_visibility_levels` | array of integers | no | Selected levels cannot be used by non-admin users for projects or snippets. Can take `0` _(Private)_, `1` _(Internal)_ and `2` _(Public)_ as a parameter. Default is null which means there is no restriction. |
-`max_attachment_size` - limit attachment size
| `max_attachment_size` | integer | no | Limit attachment size in MB |
-`session_expire_delay` - session lifetime
| `session_expire_delay` | integer | no | Session duration in minutes. GitLab restart is required to apply changes |
-`default_project_visibility` - what visibility level new project receives
| `default_project_visibility` | integer | no | What visibility level new projects receive. Can take `0` _(Private)_, `1` _(Internal)_ and `2` _(Public)_ as a parameter. Default is `0`.|
-`default_snippet_visibility` - what visibility level new snippet receives
| `default_snippet_visibility` | integer | no | What visibility level new snippets receive. Can take `0` _(Private)_, `1` _(Internal)_ and `2` _(Public)_ as a parameter. Default is `0`.|
-`restricted_signup_domains` - force people to use only corporate emails for signup
| `restricted_signup_domains` | array of strings | no | Force people to use only corporate emails for sign-up. Default is null, meaning there is no restriction. |
-`user_oauth_applications` - allow users to create oauth applications
| `user_oauth_applications` | boolean | no | Allow users to register any application to use GitLab as an OAuth provider |
-`after_sign_out_path` - where redirect user after logout
| `after_sign_out_path` | string | no | Where to redirect users after logout |
All parameters are optional. You can send only one that you want to change.
```bash
curl -X PUT -H"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/application/settings?signup_enabled=false&default_project_visibility=1
```
Example response:
```json
```json
{
{
...
@@ -79,7 +89,7 @@ All parameters are optional. You can send only one that you want to change.
...
@@ -79,7 +89,7 @@ All parameters are optional. You can send only one that you want to change.