cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

startDate format for called QueryPropertiesHistory on Postman

SOLVED
Paitoon
Amethyst

startDate format for called QueryPropertiesHistory on Postman

Hello

I would like to use postman to test called service QueryPropertiesHistory 

On Thingworx 8.4

first, I try it on thingworx like 

queryproperieshistory01.JPG

 

When i try it on Postman is like (Only raw body)

queryproperieshistory02.JPG


Value does not show

I think it may about format on startDate and endDate

 
How the format should be on postman

Thank you
 
"oldestFirst"false,
 "maxItems"5,
 "startDate""2021-05-11T22:30:00.000Z",
 "endDate""2021-05-11T23:00:00.000Z"
}



 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: startDate format for called QueryPropertiesHistory on Postman

You can try to use web site https://currentmillis.com/ to convert date to numeric milliseconds (like {"startDate":1620223200000, "endDate":1620743400000}), and pass the parameters as JSON in postman.

View solution in original post

4 REPLIES 4

Re: startDate format for called QueryPropertiesHistory on Postman

You can try to use web site https://currentmillis.com/ to convert date to numeric milliseconds (like {"startDate":1620223200000, "endDate":1620743400000}), and pass the parameters as JSON in postman.

View solution in original post

Re: startDate format for called QueryPropertiesHistory on Postman

This work now Thank you!!queryproperieshistory03.JPG 

Re: startDate format for called QueryPropertiesHistory on Postman

Other Comment

I try this method before on using epoch time converter from this website
https://www.epochconverter.com/

 

But is does not work since it conversion result is wrong huh???

 

queryproperieshistory04.JPG

 

queryproperieshistory05.JPG

Re: startDate format for called QueryPropertiesHistory on Postman

Moreover

This format I use from previous Topic
https://community.ptc.com/t5/ThingWorx-Developers/How-to-use-QueryNamedPropertyHistory-service-with-...

 

So, i don't know the right format is in number or string like that

queryproperieshistory06.JPG

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.