skip to content

API - Update Jobcard User

URL: JobcardUpdateUser.php

JSON Option (recommended):

to use as JSON, append ?apiformat=json to the URL, then send through all variables as a JSON encoded string.

Required Fields:

username
password
JobcardNR (int) - must match existing Jobcard
UserID (int) - must match existing user of business, or the request will return an error.

Optional Fields:

SMSToClient (bool)
EmailToClient (bool)
WhatsApp(bool)

 

SUCCESS or an array with errors.

Example PHP code

$param['username'] = '';
$param['password'] = '';
$param['JobcardNR'] = 1;
$param['UserID'] = 1;
    
$url = 'https://www.jobcardsonline.co.za/api/JobcardUpdateUser.php?apiformat=json';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url); //set the url
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //return as a variable
curl_setopt($ch, CURLOPT_POST, 1); //set POST method
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($param)); //set the POST variables
$response = curl_exec($ch); //run the whole process and return the response

Updated: Mon, 9 November 2026

Print this page | Back to top