v51

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-08-01131107332.8 KB
Versions

Update artifact version content

Updates the content of a single version of an artifact.

NOTE: the artifact must be in DRAFT status.

Both the artifactId and the unique version number must be provided to identify the version to update.

This operation can fail for the following reasons:

  • No artifact with this artifactId exists (HTTP error 404)
  • No version with this version exists (HTTP error 404)
  • Artifact version not in DRAFT status (HTTP error 409)
  • A server error occurred (HTTP error 500)
put/groups/{groupId}/artifacts/{artifactId}/versions/{versionExpression}/content

Request body

contentstring required

Raw content of the artifact version or a valid (and accessible) URL where the content can be found.

contentTypestring required

The content-type, such as application/json or text/xml.

encoding'base64'

Optional encoding for the content property. When set to 'base64', the content value will be base64-decoded by the server before processing.

Example request

{
  "references": [
    {
      "groupId": "mygroup",
      "artifactId": "13842090-2ce3-11ec-8d3d-0242ac130003",
      "version": "2",
      "name": "foo.bar.Open"
    }
  ]
}

Response

The artifact version content was successfully updated.