Skip to main content

Point a ref at an existing revision

PUT 

/api/v1/projects/:project_id/refs/:ref_name

Create or move a named ref onto an existing project revision.

Ref names are git-refname-ish validated; the revision must belong to this project. Moving the default ref also moves the project head.

  • Scope required: projects:manage_source + manager-or-above.
  • Archived projects reject the move (409).

Request

Responses

Successful Response