Http request to add attachment

I have used the following endpoint :

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:


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?