Branches
Create a new branch
Creates a new branch for the artifact. A new branch consists of metadata and a list of versions.
This operation can fail for the following reasons:
- No artifact with this groupId and artifactId exists (HTTP error 404)
- A branch with the given branchId already exists (HTTP error 409)
- A server error occurred (HTTP error 500)
post/groups/{groupId}/artifacts/{artifactId}/branches
Request body
Example request
{
"branchId": "1.0.x",
"description": "The description of the branch."
}Response
Branch successfully created.
Example response
{
"groupId": "ExampleGroup",
"artifactId": "ExampleArtifact",
"branchId": "1.0.x",
"description": "Just an example branch.",
"systemDefined": false,
"createdOn": "2018-02-10T09:30Z",
"modifiedBy": "user1",
"modifiedOn": "2020-02-10T09:30Z",
"owner": "user2"
}