Skip to content

Update group security settings

PUT
/api/v4/groups/{id}/security_settings

Updates group security settings for a specified group. You must have the Security Manager, Maintainer, or Owner role for the group.

id
required
One of:
string

The ID or URL-encoded path of the group

Media type application/json
object
secret_push_protection_enabled
required

Whether to enable the feature

boolean
nullable
projects_to_exclude

IDs of projects to exclude from the feature

Array<integer>
nullable
Example generated
{
"secret_push_protection_enabled": true,
"projects_to_exclude": [
1
]
}

OK

Bad Request

Not Found