Update project security settings
PUT
/api/v4/projects/{id}/security_settings
Updates project security settings for a specified project. You must have the Maintainer or Owner role for the project.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body
Section titled “ Request Body ” Media type application/json
object
secret_push_protection_enabled
Enable/disable secret push protection
boolean
pre_receive_secret_detection_enabled
Enable/disable secret push protection
boolean
fast_dependency_paths_enabled
Enable fast mode for dependency path graph builds. When enabled, records one path per dependency instead of all possible paths, reducing memory and processing time for large dependency graphs. Requires the dependency_paths feature flag to be enabled.
boolean
Example generated
{ "secret_push_protection_enabled": true, "pre_receive_secret_detection_enabled": true, "fast_dependency_paths_enabled": true}Responses
Section titled “ Responses ”OK
Bad Request
Not Found