Solutions

Update Contact API

Sheena Sen May-29th, 2012 14:00 0 0

This API is used to Update Contact

Please check example usage of Vision Helpdesk API

Operation : update_client
Module : client

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

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

$postfields["vis_client_id"] = 9;

$postfields["vis_parent_client_id"] = 1;
// This is client id which you wish to update

$postfields["vis_firstname"] = "Ms.";

$postfields["vis_lastname"] = "Ms.";

$postfields["vis_username"] = "sheenasen";

$postfields["vis_email"] = "testing@gmail.com";


[Optional]

Below four fields decides access rights of a contact: To provide access set 1

$postfields["vis_view_tickets"] = 1;
$postfields["vis_openticket"] = 1;
$postfields["vis_billingacess"] = 1;
$postfields["vis_replyticket"] = 1;

Below is example API usage for Update contact

http://visiononlinedemo.com/support/api/index.php?
vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=client
&vis_operation=update_client
&vis_client_id=9
&vis_parent_client_id=1
&vis_domain=1
&vis_firstname=testing
&vis_lastname=
&vis_email=testing@gmail.com
&vis_username=testing
&vis_openticket=1


OR use "access token" to Update contact

http://visiononlinedemo.com/support/api/index.php?
vis_txttoken=WXprMk1UY3dZV1V6WWpZeU16RmpOelF3TVdReE5UWTJOVGMyTm1VeU4yUT0=
&vis_module=client
&vis_operation=update_client
&vis_client_id=9
&vis_parent_client_id=1
&vis_domain=1
&vis_firstname=testing
&vis_lastname=
&vis_email=testing@gmail.com
&vis_username=testing
&vis_openticket=1

Vote

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