Forums/Community/Zendesk API

Answered

Activating Triggers with API

Mark Stocks
asked this on December 23, 2009 06:30

We have some triggers that define who the default user should be for routing general helpdesk tickets.

I would like to activate and deactivate these from the API, is this possible?


The URL's

are /rules/activate/291979

 

Comments

User photo
Jake Holman
Product Manager
Check Answer

Hi Mark,

The control of Triggers via the API is not possible.

Jake Holman
Zendesk Support

December 23, 2009 06:43
User photo
Mark Stocks
jedunn

Is it possible via the API's to control who the default user should be when tickets get emailed that are unassigned.  What we would like to be able to do is, via our iPhone App.  Make an API call to zendesk that would change/update the "on call" user, so all tickets will get routed to him.  This would help in our response time.

 

December 23, 2009 06:52
User photo
Jake Holman
Product Manager
Check Answer

Hi Mark,

It's possible, but you would need to build the selector - by default tickets come into Zendesk unassigned (unless there's only one agent on the helpdesk, in which case it will auto-assign to them).

I recommend checking out http://www.zendesk.com/api/groups (to pull all the agents within a given group to select from) and http://www.zendesk.com/api/tickets (to understand how you can actually manipulate tickets).

Jake Holman
Zendesk Support

December 23, 2009 07:27
User photo
Gaurav Bansal
snapdealc

Activating targets through API would also be useful. If we could have an api that can check if a particular target is activated or not and then activate it if it is de-activated due to some reason, that will really be helpful.

April 01, 2013 20:41
User photo
Brandon K.
Zendesk

Hey Gaurav,

Do you think you could give me the workflow of how you would like to activate your targets? Just an example situation where this would occur would be great. At this moment i'm not entirely sure what you're looking for so I can't offer you a good solution to you.

April 18, 2013 12:41
User photo
Gaurav Bansal
snapdealc

Hi Brandon

Thank you for following up on this. We have a target that is notified everytime a ticket is updated. This is used for various types of real time reporting which is very important for us. However, during scheduled maintenance, when our systems are down, the target is de-activated after 20 unsuccessful attempts. It remains deactivated after that until someone will activate it manually. It is very easy to miss this the morning after our scheduled maintenance and there is no way to automate this process. This leads to many missed updates (sometimes, we remember this 24 hours later and by then, we have missed a entire day's updates!)

 

What we want is to have an api that we can call to check if the target is active or not and if not, it can be reactivated using that api. This can then be used as a scheduled task and check and activate the target automatically without anyone having to remember this and doing it manually.

I hope I have been able to explain my case in a clear manner. Do write back if you have more questions for me. Hoping for a positive reply from you.

 

thanks

Gaurav

April 19, 2013 02:50
User photo
Adam
Zendesk

Hi Guarav,

 

While we do now offer the ability to modify and activate triggers via the API we do not currently have the ability to parse or otherwise alter targets via the API.

April 23, 2013 14:23
User photo
Gaurav Bansal
snapdealc

Hi Adam

Thanks for the update. We do not really want to alter the target, just be able to check if it is on or not and then activate it if it isnt through an API. As you said that it is possible now, can you please share some more information on the api or the process to achieve so.

 

thanks

Gaurav

April 23, 2013 21:20
User photo
Adam
Zendesk

Hi Guarav,

I think my last message was unclear:

You can view triggers (and modify them) via the API

You can not view or modify targets via the API

April 24, 2013 10:06
User photo
Vasco Pedro

Hi Adam,

   According to the documentation, it is now possible to create triggers and targets through the API. When I create a trigger it gets added to the end of the list, how do I reorder triggers, through the API?

 

   Thanks,

 

Vasco

October 09, 2013 04:44