Hi Jaycee, of course:)
The first “lists” call returns a json that contains a “filterBranch” parameter of this format:
“filterBranch”: {
“filterBranches”: [
{
“filterBranches”: [],
“filters”: [
{
“property”: “notes_last_updated”,
“operation”: {
“operator”: “IS_AFTER”,
“includeObjectsWithNoValueSet”: false,
“timePoint”: {
“timeType”: “DATE”,
“timezoneSource”: “CUSTOM”,
“zoneId”: “US/Eastern”,
“year”: 2024,
“month”: 7,
“day”: 1,
“hour”: 23,
“minute”: 59,
“second”: 59,
“millisecond”: 999,
“timeType”: “DATE”
},
“endpointBehavior”: “EXCLUSIVE”,
“propertyParser”: “VALUE”,
“type”: “TIME_POINT”,
“operationType”: “TIME_POINT”
},
“filterType”: “PROPERTY”
}
],
“filterBranchOperator”: “AND”,
“filterBranchType”: “AND”
}
],
“filters”: [],
“filterBranchOperator”: “OR”,
“filterBranchType”: “OR”
}
The “search” request requires a different format as shown in the API, under the search endpoint here.
When I try to use the format that I got in the first reauest, I get this error:
{
“status”: “error”,
“message”: “Invalid input JSON on line 36, column 29. Some required fields were not set: [propertyName, operator]”,
“correlationId”: “a6092eb0-74db-4935-8651-20b9407c0fe0”,
“category”: “VALIDATION_ERROR”
}
The difference is not only between the key names (propertyName, operator), the values are expected to be in different formats as well.
For example: The “IS_AFTER” operator value in the first call is equivalent to “GT” in the second one.
If you need more data, just tell me:)
Thank you very much!