Data Laboratory FSBO API Documentation

Edit User
PUT
Update Password
https://api.datalaboratory.com/live/user/edit/password
Example Request
[php]
“https://api.datalaboratory.com/live/user/edit”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “PUT”,
CURLOPT_POSTFIELDS =>”{\n \”password\”: \”password12345\”\n}”,
CURLOPT_HTTPHEADER => array(
“Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkbF9hZG1pbiIsImFjY2VzcyI6WyJhZG1pbiIsInRlY2huaWNhbHMiLCJ1c2VyIl0sImV4cCI6MTU5NjEyMTc0NiwiaWF0IjoxNTk2MDg1NzQ2fQ.v9fDUFxA75tb8TEDoTTFgdjDeO5FnPSSfomNzFhsXdo”
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
[/php]

Body
[php]
{
“Status”: “Success”,
“Action”: “Updated password”,
“User”: “userName”
}
[/php]
Headers
[php]
Date: Thu, 30 Jul 2020 04:29:10 GMT
Server: Apache/2.4.41 (Ubuntu)
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/json
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
[/php]