Branches
Replace list of versions in branch
Add a new version to an artifact branch. Branch is created if it does not exist. Returns a list of version identifiers in the artifact 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)
- A server error occurred (HTTP error 500)
put/groups/{groupId}/artifacts/{artifactId}/branches/{branchId}/versions
Request body
Example request
{
"versions": [
"\"3.1.6\""
]
}Response
The list of versions was replaced successfully.