Python POST or PUT sample

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
kdtrog
Junior Coder
Posts: 43
Joined: Wed Mar 28, 2007 9:36 am

Python POST or PUT sample

Post by kdtrog » Wed Aug 16, 2017 9:56 am

I am using Pyexec to query a rest-api interface. I used the provided examples with success. Now I would also like to use the update possibilities like put or post.
Is there any sample for this, i.e. how to call and how to transfer the update values (JSON)?

Klaus

kdtrog
Junior Coder
Posts: 43
Joined: Wed Mar 28, 2007 9:36 am

Re: Python POST or PUT sample

Post by kdtrog » Wed Aug 16, 2017 12:44 pm

Well, I found a better solution. I removed the Python call and call curl.exe via the run function. Much easier to handle. :D

Klaus

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts