Http request to add attachment

I have used the following endpoint :

https://example.com/api/2/issue/abc.123/attachments

I trying to add an attachment, but getting the following error:

Am I doing something wrong? What else do I need to provide?

I also tried passing Username and Password in the API Body, but I still got the status code as 404

Refer to this:

image

Give the file name as “path” or “file” and try @krrrs

tried that …still getting the same error. Do I need to add something in the body?