Update Client
POST
https://txtria.com/api/updateclient
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
Client email | Yes | client123@txtria.com | |
password | Client password | Yes | cP123 |
name | Client name | No | Joe |
address | Client address | No | 8 Kings Highway West |
city | Client city | No | Haddonfield |
state | Client state | No | New Jersey |
zip | Client zip | No | 08033 |
phone | Client phone | No | +18323249XXX |
client_logo | Complete image url | No | https://yourdomain.com/img.png |
status | 0 or 1 | No | 1 |
archived | 0 or 1 | No | 1 |
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
$url = 'https://txtria.com/api/updateclient';
$data = array(
'email' => 'client123@txtria.com',
'password' => 'cP123',
'name' => 'Joe',
'address' => '8 Kings Highway West',
'city' => 'Haddonfield',
'state' => 'New Jersey',
'zip' => '08033',
'phone' => '+18323249XXX',
'client_logo' => 'https://domain.com/img.png',
'status' => '1',
'archived' => '1',
'sys_id' => 'ACfc98e7b0aae031b9fa',
'auth_token' => 'c74eac89884a126a2cca'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Example Response
{
"success": "1",
"message": "Client data has been updated successfully"
}