How to upload an attachment with API

How to upload an attachment with API

Hi, I'm trying to add from api a url link type file to a deal, but I've got a status code of 400.
Could you tell me what's wrong with my request, please?


I have checked that url is valid



  1. {
        "data": [
            {
                "File_Name": "pdfmonkey",
                "$type": "Link URL",
                "$se_module":"Deals",
                "$link_url": "https://preview.pdfmonkey.io/pdf/web/...",
                "Related_To": {
                        "name":"FC24-10",
                        "id": "6028338000000558651"
                }
            }
           
        ]
    }