Is there an API to add attachment in the comment in Jira software?

Hello

Kindly find documentation for adding an attachement:
https://confluence.atlassian.com/jirakb/how-to-add-an-attachment-to-a-jira-issue-using-rest-api-699957734.html

Regards,
Ibrahim