It works when searching for strings, but I get 400 bad request when trying with dates. What format should date be in in the search query for V3 apis? Still unix-time?
{
"status": "error",
"message": "There was a problem with the request.",
https://api.hubapi.com/crm/v3/objects/contacts/search date filter
SOLVE
Hi Vitaly, do you mean why is the POST method needed? Post is required in order to send the message Body with the "filterGroups" and "properties" syntax.
https://api.hubapi.com/crm/v3/objects/contacts/search date filter
SOLVE
I have to imagine it is still Unix time. I've been trying the same thing but can't seem to get the syntax of the call right. I'm using Postman for my R&D. All the parameters from a standard GET v3 Contacts call go into the Body of the call formatted as JSON, right? That is how you get the "filters" in there, right? Got an example?
It works fine to search for lastname for example, but can't figure out any good time formats that seem to work. Tried Unix time as well but that didn't do it.
https://api.hubapi.com/crm/v3/objects/contacts/search date filter
SOLVE
Hello BStump, the value you provide for a Date Filter must be expressed in Unix Epoch time format. If you read through this entire thread you will see an example.
https://api.hubapi.com/crm/v3/objects/contacts/search date filter
SOLVE
I'd like to set up a repeatable API call using a Filter on a Date property with a relative value. For example Today(now) - 1 Day. Is there syntax for that or will I have to calculate the relative Unix date value prior to each API call?
This would be something you'd have to code out on your own server after making the initial API call else, you would indeed need to work with the relative Unix timestamp prior to the call.