v51

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-08-01131107332.8 KB
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

versionsVersion[] required

Example request

{
  "versions": [
    "\"3.1.6\""
  ]
}

Response

The list of versions was replaced successfully.