Update project
PUT/api/projects/:project_id
Changes the fields sent on a project; null clears an optional field, but null on the name, branch, prefix, gate or stack commands, or push setting returns 422. repos replaces the connected repositories as a whole set (a row with id is updated, one without is added, any left out is removed); changing branch, gate, stack or push settings, or the primary repository's branch, needs governance authority; changing Run jobs as needs the Org Owner or Org Admin role; connecting a project's first repository or removing its last needs the Org Owner or Org Admin role and permission to both create and delete projects (an empty repos, or a null repo_url), which stops every task running in one of its git worktrees and queues it again to run in an empty folder. merge_lane_enabled turns the project's merge lane on or off; turning it on answers 409 when the organization's plan has no merge lane, and null is a 422; returns the project, or 422 naming each bad repos row by its index.
Request
Responses
- 200
- 422
OK
Unprocessable content