v1

latestOpenAPI 3.0.2Apache 2.02026-07-136548173.9 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/{version}/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
createdBystring required
commentIdstring required

Example response

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