Skip to main content
1-Visitor
May 14, 2021
Solved

startDate format for called QueryPropertiesHistory on Postman

  • May 14, 2021
  • 1 reply
  • 1988 views

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"
}



 

Best answer by yhan

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.

1 reply

yhan17-PeridotAnswer
17-Peridot
May 14, 2021

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.

Paitoon1-VisitorAuthor
1-Visitor
May 14, 2021

This work now Thank you!!queryproperieshistory03.JPG