Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0403ae88
Commit
0403ae88
authored
Nov 22, 2021
by
Katrin Leinweber
Committed by
Marcin Sedlak-Jakubowski
Nov 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API docs: Add example to edit a project setting
parent
20e4a075
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
doc/api/projects.md
doc/api/projects.md
+11
-0
No files found.
doc/api/projects.md
View file @
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. |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment