but if I try to use updated_at:>'2018-08-26' I get the following error:
{"description":"Validation failed","errors":[{"field":"updated_at","message":"Unexpected/invalid field in request","code":"invalid_field"}]}
Is this going to be implemented yet or is there another way of doing this?
Thanks,
Ezequiel
Best Answer
V
Vaishali Pillai
said
about 1 year ago
Hi Ezequiel,
As of now, API V2 doesn’t support the option to query based on agent name or agent ID. You can query based on updated_since for specific time period rather than updated_at.
You could try using API V1 but still that would help you derive ticket closed or resolved by a specific agent and not based on updated_at. Our team is working on enhancing API v2 for tickets. Once it's available the query function should be in place which will help you out.
We will keep you posted here on further updates.
Thanks for using Freshservice!
1 person has this question
G
Giannis Koutsoubos
said
over 1 year ago
The same is documented in filter page but still the call fails with bad request
HTTP error: 400 {"description":"Validation failed","errors":[{"field":"updated_at","message":"Unexpected/invalid field in request","code":"invalid_field"}]}
Any updates on this?
Vaishali Pillai
said
about 1 year ago
Answer
Hi Ezequiel,
As of now, API V2 doesn’t support the option to query based on agent name or agent ID. You can query based on updated_since for specific time period rather than updated_at.
You could try using API V1 but still that would help you derive ticket closed or resolved by a specific agent and not based on updated_at. Our team is working on enhancing API v2 for tickets. Once it's available the query function should be in place which will help you out.
Ezequiel Madeira de Campos
I'm trying to get tickets by agent, so I'm doing this:
domain.freshservice.com/api/v2/search/tickets?query="agent_id:234568215"
but I want to take only the ones that are still open or were resolved/closed in the last two days.
there is no documentation about search in FreshService API documentation (https://api.freshservice.com/v2/#view_all_ticket)
in FreshDesk page I've found about it (https://developer.freshdesk.com/api/#list_all_tickets)
but if I try to use updated_at:>'2018-08-26' I get the following error:
Is this going to be implemented yet or is there another way of doing this?
Thanks,
Ezequiel
Hi Ezequiel,
As of now, API V2 doesn’t support the option to query based on agent name or agent ID. You can query based on updated_since for specific time period rather than updated_at.
You could try using API V1 but still that would help you derive ticket closed or resolved by a specific agent and not based on updated_at. Our team is working on enhancing API v2 for tickets. Once it's available the query function should be in place which will help you out.
We will keep you posted here on further updates.
Thanks for using Freshservice!
1 person has this question
Giannis Koutsoubos
The same is documented in filter page but still the call fails with bad request
Any updates on this?
Vaishali Pillai
Hi Ezequiel,
As of now, API V2 doesn’t support the option to query based on agent name or agent ID. You can query based on updated_since for specific time period rather than updated_at.
You could try using API V1 but still that would help you derive ticket closed or resolved by a specific agent and not based on updated_at. Our team is working on enhancing API v2 for tickets. Once it's available the query function should be in place which will help you out.
We will keep you posted here on further updates.
Thanks for using Freshservice!