How to issue Print API in windows setup


#1

I have OctoPrint setup on windows environment. And my upload directory is under c:\users...\AppData....

Can I use the POST API http://localhost:5000/api/files/local/ with body
{"command":"select", "print":"true"}.

How should I give the path file to the windows directory? Can someone share api url for this?

Thanks


#2

http://localhost:5000/api/files/local/gcodefilename


#3

I'm not quite sure, but try "file" instead of "http" in the address field of the windows file browser


#4

Set headers:

Content-Type: application-json
X-Api-Key: yourAPIkey

Send it to the port 80 rather than the 5000. It should still work.