Create a new branch in the repository.
External DocumentationTo learn more, visit the GitLab documentation.

Parameters

ParameterDescription
BranchName of the branch.
Project IDID or path of the project owned by the authenticated user.
RefBranch name or commit SHA to create branch from.

Example Output

{
	"name": "<string>",
	"commit": {
		"id": "<string>",
		"short_id": "<string>",
		"created_at": "2023-03-04T10:29:55.000+00:00",
		"parent_ids": [],
		"title": "<string>",
		"message": "<string>",
		"author_name": "<string>",
		"author_email": "<string>",
		"authored_date": "2023-03-04T10:29:55.000+00:00",
		"committer_name": "<string>",
		"committer_email": "<string>",
		"committed_date": "2023-03-04T10:29:55.000+00:00",
		"trailers": {},
		"extended_trailers": {},
		"web_url": "<string>"
	},
	"merged": false,
	"protected": false,
	"developers_can_push": false,
	"developers_can_merge": false,
	"can_push": true,
	"default": false,
	"web_url": "<string>"
}

Workflow Library Example

Create Branch with Gitlab and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop