Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 1,668
    • Issues 1,668
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 487
    • Merge requests 487
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Do not update/delete: Banner broadcast message test data

Do not update/delete: Notification broadcast message test data

  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #31012
Closed
Open
Issue created Apr 15, 2017 by username-removed-14714@winniehellContributor

API doesn't agree on builds_enabled vs. jobs_enabled

Summary

Documentation and JSON response from the API only use jobs_enabled while the API seems to only accept builds_enabled as a parameter.

Steps to reproduce

curl --request PUT --header "PRIVATE-TOKEN: ${PRIVATE_TOKEN}" "https://gitlab.com/api/v4/projects/${PROJECT_ID}?jobs_enabled=false"

What is the current bug behavior?

{"error":"name, description, issues_enabled, merge_requests_enabled, wiki_enabled, builds_enabled, snippets_enabled, shared_runners_enabled, container_registry_enabled, lfs_enabled, visibility, public_builds, request_access_enabled, only_allow_merge_if_pipeline_succeeds, only_allow_merge_if_all_discussions_are_resolved, path, default_branch, repository_storage, approvals_before_merge are missing, at least one parameter must be provided"}

What is the expected correct behavior?

What happens if I use builds_enabled instead:

curl --request PUT --header "PRIVATE-TOKEN: ${PRIVATE_TOKEN}" "https://gitlab.com/api/v4/projects/${PROJECT_ID}?builds_enabled=false" | grep --only-matching --extended-regexp '"(builds_enabled|jobs_enabled)"[^,]+'

"jobs_enabled":false
Assignee
Assign to
Time tracking