Hi All
I’m using below code to upload file to monday.com with VB.NET
Dim client2 = New RestClient(“https://api.monday.com/v2/file”)
Dim request2 = New RestRequest(Method.POST)
request2.AddHeader(“Authorization”, “XXXXXXX”)
request2.AddHeader(“Content-Type”, “multipart/form-data”)
request2.AddFile(“variablessfile]”, “C:/test.txt”)
request2.AddParameter(“query”, “mutation($file: File!) {add_file_to_column(file: $file,item_id:XXXXXXXX,column_id:”“files”“) {id}}”)
Dim response2 As IRestResponse = client2.Execute(request2)
I received an error {“error_message”:“Unsupported query”,“status_code”:400}
I tried with escape "\\ and that gave the same error with VB.NET.
Does anyone have an idea of what’s wrong here?
Din