Solutions

Delete Ticket API

Sheena Sen May-29th, 2012 15:01 1 0

This API is used to restore ticket from trash, Move to trash, Permanent delete ticket
Please check example usage of Vision Helpdesk API

Operation : update_properties
Module : ticket

Below code is used to Delete Ticket:

$postfields["vis_module"] = "ticket";
// This is the module under which you wish to perform operation

$postfields["vis_operation"] = "update_properties";
// This is the operation field

$postfields["vis_ticket_id"] = 1;

$postfields["vis_action"] = "delete";

$postfields["vis_update_id"] = 2;
// 0=restore from trash, 1=move to trash, 2=permanent delete

Below is example API url to move to trash:

http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=update_properties
&vis_action=delete
&vis_update_id=1
&vis_ticket_id=234


OR use "access token" to move to trash:


http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=update_properties
&vis_action=delete
&vis_update_id=1
&vis_ticket_id=234


Below is example API url to restore from trash:

http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=update_properties
&vis_action=delete
&vis_update_id=0
&vis_ticket_id=234


OR use "access token" to
restore from trash:


http://visiononlinedemo.com/support/api/index.php? 
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0= 
&vis_module=ticket 
&vis_operation=update_properties 
&vis_action=delete 
&vis_update_id=0 
&vis_ticket_id=234


Below is example API url to permanent delete:

http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=update_properties
&vis_action=delete
&vis_update_id=2
&vis_ticket_id=234


OR use "access token" to
permanent delete:


http://visiononlinedemo.com/support/api/index.php? 
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0= 
&vis_module=ticket 
&vis_operation=update_properties 
&vis_action=delete 
&vis_update_id=2 
&vis_ticket_id=234

Vote

Was this article helpful?
1 out of 1 found this helpful