Curl request equivalent in VB.NET - monday.com API

I need to call a monday.com API to upload a file. Below is the Curl sample given.

curl
-F query=‘mutation ($file: File!) { add_file_to_column(file: $file, item_id: 118607269, column_id: “files”) { id } }’
-F variables[file]=@/Users/diprobhowmik/screenshots/image.png
-H “Authorization: APIKEYHERE”
https://api.monday.com/v2/file

I need to convert it to VB.NET. I’m having problems when attaching file.

Thanks in advance

Hey @issac - welcome to the community.

The main thing to keep in mind when uploading a file to the API is you’ll need to do this as a multi-part upload. Are you trying to upload a file that is stored locally on the machine you’re using?

-Daniel