The GoTo Community is currently experiencing some technical issues affecting new posts and comments. You may need to reload the page you are on before you can post a comment. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
Andrew Evans
13 years agoNew Member
How can I make a call to the API for incidents that have been closed?
Currently I'm able to use the API to gather open incidents. I would like to be able to do the same thing for closed incidents so that I can view a history of incidents, and be able to tell how long they take to be closed.
I'm using the information found at:
http://www.beetil.com/api/
I'm using the information found at:
http://www.beetil.com/api/
2 Replies
- Andrew Evans13 years agoNew MemberYes. This is going to do the trick. I'll be using a few different date ranges.
Thanks! - Luke Grimstrup13 years agoRetired GoTo ContributorHi Andrew,
Great question! To achieve this, I would first create a custom report that reported on closed incidents (if you're polling the API periodically I would also consider adding a time range). See attachment:
Once you've created the report - take note of the ID in the URL and use that in the API call. For example, the curl command you could then use would be:
curl -u x:your-api-token -H "Content-Type: application/json" https://deskapi.gotoassist.com/v1/inc...
Does that help?
Luke