Branches
Add a new version to a branch.
Add a new version to an artifact branch. Returns a list of version identifiers in the branch, ordered from the latest (tip of the branch) to the oldest.
This operation can fail for the following reasons:
- No artifact with this groupId and artifactId exists (HTTP error 404)
- No branch with this branchId exists (HTTP error 404)
- Branch already contains the given version. Artifact branches are append-only, cycles and history rewrites, except by replacing the entire branch using the replaceBranchVersions operation, are not supported. (HTTP error 409)
- A server error occurred (HTTP error 500)
post/groups/{groupId}/artifacts/{artifactId}/branches/{branchId}/versions
Request body
Response
The version was successfully added to the branch.