Commit 28bdff8c authored by Marcin Sedlak-Jakubowski's avatar Marcin Sedlak-Jakubowski

Merge branch 'add-edit-projects-api-example' into 'master'

API docs: Add example to edit a project setting

See merge request gitlab-org/gitlab!74109
parents 20e4a075 0403ae88
......@@ -1350,6 +1350,17 @@ where `password` is a public access key with the `api` scope enabled.
PUT /projects/:id
```
For example, to toggle the setting for
[shared runners on a GitLab.com project](../user/gitlab_com/index.md#shared-runner-cloud-runners):
```shell
curl --request PUT --header "PRIVATE-TOKEN: <your-token>" \
--url 'https://gitlab.com/api/v4/projects/<your-project-ID>' \
--data "shared_runners_enabled=true" # to turn off: "shared_runners_enabled=false"
```
Supported attributes:
| Attribute | Type | Required | Description |
|-------------------------------------------------------------|----------------|------------------------|-------------|
| `allow_merge_on_skipped_pipeline` | boolean | **{dotted-circle}** No | Set whether or not merge requests can be merged with skipped jobs. |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment