API Reference
Search…
Update a client
post
https://api.complycube.com
/v1/clients/:id
Update a client

Example request

cURL
Node.js
Python
PHP
.NET
1
curl -X POST https://api.complycube.com/v1/clients/{:clientId} \
2
-H 'Authorization: <YOUR_API_KEY>' \
3
-H 'Content-Type: application/json' \
4
-d '{
5
"email": "[email protected]",
6
"personDetails":{
7
"firstName": "Jane",
8
"lastName": "Doe",
9
"dob":"1995-12-20",
10
"nationality": "US"
11
}
12
}'
Copied!
1
const { ComplyCube } = require("@complycube/api");
2
3
const complycube = new ComplyCube({ apiKey: "<YOUR_API_KEY>" });
4
5
const client = await complycube.client.update("CLIENT_ID", {
6
7
personDetails: {
8
firstName: "Jane",
9
lastName: "Doe",
10
dob: "1995-12-20",
11
nationality: "US"
12
}
13
});
Copied!
1
from complycube import ComplyCubeClient
2
cc_api = ComplyCubeClient(api_key='<YOUR_API_KEY>')
3
4
client = cc_api.clients.update('CLIENT_ID',email='[email protected]')
Copied!
1
use ComplyCube\ComplyCubeClient;
2
3
$ccapi = new ComplyCubeClient('<YOUR_API_KEY>');
4
$updated = $ccapi->clients()->update($id, ['email' => '[email protected]']);
Copied!
1
using ComplyCube.Net;
2
using ComplyCube.Net.Resources.Clients;
3
4
var clientApi = new ClientApi(new ComplyCubeClient("<YOUR_API_KEY>"));
5
6
var update = new ClientRequest {
7
email: "[email protected]",
8
personDetails = new PersonDetails {
9
firstName = "Jane",
10
lastName = "Doe"
11
}
12
};
13
14
var client = await clientApi.UpdateAsync("CLIENT_ID", update);
Copied!