Skip to main content

Fetch a VCS ref and append it as a revision

POST 

/api/v1/projects/:project_id/revisions

Explicit VCS fetch-append. VCS-source projects only.

Appends under ref_name (default production); a new name creates a candidate branch off the default ref's head. Identical bytes to the ref head short-circuit to the existing row. Archive projects use POST /revisions/upload instead.

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

Request

Responses

Successful Response