This API is used to update ticket properties like changing ticket status, priority, department etc..
Please check example usage of Vision Helpdesk API
Operation : update_properties
Module : ticket
Below code is used to Add Ticket Note -
$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"] = "status";
// status, priority, department, type, flag, staff
$postfields["vis_update_id"] = 2;
// Based on what you have choose in vis_action you can set the id here -- here in this example we are changing ticket status to status id 2.
[Optional]
$postfields["vis_sub_action"] = 0
// 0=remove staff, 1=add staff - set this field only while updating staff/owner
Below is example API url for Update Ticket Properties
Update Ticket Department:
http://visiononlinedemo.com/support/api/index.php? &vis_txtusername=admin &vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3 &vis_module=ticket &vis_operation=update_properties &vis_action=department &vis_update_id=5 &vis_ticket_id=242
Assign Staff:
http://visiononlinedemo.com/support/api/index.php? &vis_txtusername=admin &vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3 &vis_module=ticket &vis_operation=update_properties &vis_action=staff &vis_update_id=87 &vis_ticket_id=242 &vis_sub_action=1
Unassign Staff:
http://visiononlinedemo.com/support/api/index.php? &vis_txtusername=admin &vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3 &vis_module=ticket &vis_operation=update_properties &vis_action=staff &vis_update_id=87 &vis_ticket_id=242 &vis_sub_action=0
OR use "access token" to Update Ticket Properties
Update Ticket Department:
http://visiononlinedemo.com/support/api/index.php? &vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0= &vis_module=ticket &vis_operation=update_properties &vis_action=department &vis_update_id=5 &vis_ticket_id=242
Assign Staff:
http://visiononlinedemo.com/support/api/index.php? &vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0= &vis_module=ticket &vis_operation=update_properties &vis_action=staff &vis_update_id=87 &vis_ticket_id=242 &vis_sub_action=1
Unassign Staff:
http://visiononlinedemo.com/support/api/index.php? &vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0= &vis_module=ticket &vis_operation=update_properties &vis_action=staff &vis_update_id=87 &vis_ticket_id=242 &vis_sub_action=0