API Help using search criteria

API Help using search criteria

Hi,

We're using v3 of the API and I need help with the below. I'm trying to return all closed tickets from the previous day per technician:

{
    "list_info": {
        "row_count": 200,
        "start_index": 1,
        "sort_field": "created_time",
        "sort_order": "asc",
        "get_total_count": true,
        "search_fields": {
            "technician.name": "tech name",
            "status.name": "Closed"
        },
        "search_criteria": {
            "field": "completed_time",
            "condition": "greater than",
            "value": "1678752000"
        },
        "fields_required": [
            "technician.name",
            "requester.name",
            "id",
            "subject",
            "status",
            "completed_time.value",
            "created_time.value"
            ]
        }
    }
}

I get ALL closed tickets for the technician, so it would appear the search criteria doesn't work. Can someone advise why?

Thanks.

                  New to ADSelfService Plus?