createRepoBranch

@POST(value = "projects/{id}/repository/branches")
abstract suspend fun createRepoBranch(@Path(value = "id") id: String, @Query(value = "branch") branch: String, @Query(value = "ref") ref: String): Result<Branch>

Create a new branch in the repository

Return

new branch info

Parameters

id

ID or URL-encoded path of the project owned by the authenticated user.

branch

Name of the branch.

ref

Branch name or commit SHA to create branch from.