When I create a comment using the REST API, I must include attachment information. So I included the attachment id (10050), which I obtained from the upload attachment response. But when I enter this value, Jira reports a "attachment validation error".
Then I created a comment on Jira and used the REST API to retrieve all of the comment details, returning a lengthy result as attachment id. That's ""16ffe152-698f-5ed8-aa8a-f04b90f0c748." Next, I created a comment using this attachment id, which succeeded. However, I'm not sure what this attachment id is or how to retrieve it.