ContributionsMost RecentMost LikesSolutionsRe: [REST API] Filtering on "updatedOn" using the ">" operator returns 400 - Bad Request @Sarah Terry Just tested your script. It worked, however it seems the difference is how the two programming languages (Mine being Salesforces Apex) encodes the URL. Python seems to automatically encode the URL, on send the '>' is converted to '%3E' which makes sense. Apex does not automatically do this. When I replaced the '>' with '%3E' in my code, it worked. That might be the issue @Moshis having as well. Might be worth noting the encoded URL characters in the filter sections ofthe knowledge articles... Thank you for your help! Re: [REST API] Filtering on "updatedOn" using the ">" operator returns 400 - Bad Request @Sarah Terry https://companyname.logicmonitor.com/santaba/rest/device/devices?filter=updatedOn>1504905976is the exact URL/URI that I use when making a call (Which returns 400 - Bad Request) The request is successful (200 - OK) when I simply change the filter from '>' to '!~' for example.https://companyname.logicmonitor.com/santaba/rest/device/devices?filter=UpdatedOn!~1504905976 [REST API] Filtering on "updatedOn" using the ">" operator returns 400 - Bad Request Hello! We are trying to filter results based on the "updatedOn" property using the ">" operator. However, the request status will always return a 400 - Bad Request. We have used other operators that are successful, such as "!~" Example of a successful call (200 - OK): https://companyname.logicmonitor.com/santaba/rest/device/devices?filter=updatedOn!~1504905976 Example of a unsuccessful call (400 - Bad Request): https://companyname.logicmonitor.com/santaba/rest/device/devices?filter=updatedOn>1504905976 Am I doing anything wrong? Is this filter possible?
Top ContributionsRe: [REST API] Filtering on "updatedOn" using the ">" operator returns 400 - Bad RequestRe: [REST API] Filtering on "updatedOn" using the ">" operator returns 400 - Bad Request[REST API] Filtering on "updatedOn" using the ">" operator returns 400 - Bad Request