You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Has anyone tried uploading a file using the REST API using Python

edited Jun 1, 2020 12:52PM in Planning 3 comments

Summary

I am trying to upload a file using the REST API to upload a file to a Planning instance using Python

Content

Hi All,

 

Has anyone tried to upload a file to Planning cloud using the REST API using Python. I am using the examples given for the Python requests library. I am not a Python expert, so I am not sure how to figure out the problem. I keep getting a 404 error as the return status_code.

I have tried putting the file object directly as a parameter to data, I have tried chunks (code below) and I have also tried creating a dictionary with the filename and file contents.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!