You are here

Problems Submitting Downtime Via REST after upgrade to 5.2

2 posts / 0 new
Last post
hardlocked
hardlocked's picture
Problems Submitting Downtime Via REST after upgrade to 5.2

I had code in place that worked fine prior to the upgrade (from 5.1), now i found out it is not working and the upgrade is the only thing i have seen that may have affected the code.

(My code is in python)

 

here is my json i am posting:

{

"comment": "Testing downtime",

"endtime": "+30m",

"starttime": "now"

}

I have also Tried:

{

"comment": "Testing Downtime",

"endtime": "2016-10-10 13:40:51",

"starttime": "2016-10-10 13:10:51"

}

 

i am getting an error "urllib2.HTTPError: HTTP Error 403: Forbidden"

 

any help would be great.

 

hardlocked
hardlocked's picture
Fixed

Found out 5.2 would not let me use downtime/?host= 

needed to be

downtime/?hst.hostname=