Hi Guys,
I would like to disable CI/CD from the settings ( Visibility, project features, permissions ) using API attribute. However, I couldn’t find any attribute which disables CI/CD.
Can anyone help me on this?
Hi Guys,
I would like to disable CI/CD from the settings ( Visibility, project features, permissions ) using API attribute. However, I couldn’t find any attribute which disables CI/CD.
Can anyone help me on this?
Hi @Devi
The attribute to modify whether CI/CD is enabled for a project (and it’s visibility, if it is enabled) is builds_access_level
Using the Projects API endpoint to disable CI/CD for a given project, you’d want to execute the following:
<gitlab_url>/api/v4/:project_id?builds_access_level=disabled