Adding comments on deployment releases via API

I would like to post comments via API to new releases on project deployments. In the current API documentation I could only find that you can create comments for builds.
Am I missing something or is there no API endpoint for this?

It seems that the REST API to add comment exists for build result only, not for deployment version.
But you could “simulate” it as:

curl --request POST \
  --url 'http://{baseurl}/deploy/createComment.action' \
  --header 'Content-Type: application/json' \
  --data '{
  "versionId": 1602945068,
  "commentContent": "Write a comment..."
1 Like