AnsweredAssumed Answered

curl 3 url malformed error

Question asked by gina kayed on Dec 1, 2016
Latest reply on Dec 2, 2016 by James Jones

Might anyone know why I'm receiving the following error when trying to use windows command to batch create courses via a csv using the SIS API call:  cmd error: curl: 3 url malformed?

 

I'm using the following command structure below, by prefixing the file location where my csv file is located, including my token and canvas url: C:\Users\me\Desktop\Canvas>curl -F attachment=@<filename> -H "Authorization: Bearer <token>" \'https://<canvas>/api/v1/accounts/<account_id>/sis_imports.json?import_type=instructure_csv'

 

Could it be because windows command doesn't support single quotes, which is what cURL statements use to specify JSON data? I also tried removing the backsplash to see if that could be the problem, but it wasn't.  Any ideas/suggestions on how to fix this?

 

  Thanks!

Outcomes