How to add an attachment to the manual steps of a test using rest api

I want to add an attachment to the manual steps of my test issue through REST API. I have come across the following endpoint /rest/api/2/issue/{issueIdOrKey}/attachments in the documentation but it does not attached the file to the manual steps.

Can someone please point me to the correct link for this?