v51

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

Add new comment

Adds a new comment to the artifact version. Both the artifactId and the unique version number must be provided.

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)
  • A server error occurred (HTTP error 500)
post/groups/{groupId}/artifacts/{artifactId}/versions/{versionExpression}/comments

Request body

valuestring required

Example request

{
  "value": "This is a new comment on an existing artifact version."
}

Response

The comment was successfully created.

valuestring required
createdOnstring date-time required
ownerstring required
commentIdstring required

Example response

{
  "commentId": "12345",
  "value": "This is a comment on an artifact version.",
  "owner": "bwayne",
  "createdOn": "2023-07-01T15:22:01Z"
}