Was this helpful?
curl -X POST https://api.complycube.com/v1/clients/{:clientId} \
-H 'Authorization: <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"email": "jane.doe@example.com",
"personDetails":{
"firstName": "Jane",
"lastName": "Doe",
"dob":"1995-12-20",
"nationality": "US"
}
}'const { ComplyCube } = require("@complycube/api");
const complycube = new ComplyCube({ apiKey: "<YOUR_API_KEY>" });
const client = await complycube.client.update("CLIENT_ID", {
email: "jane.doe@example.com",
personDetails: {
firstName: "Jane",
lastName: "Doe",
dob: "1995-12-20",
nationality: "US"
}
});from complycube import ComplyCubeClient
cc_api = ComplyCubeClient(api_key='<YOUR_API_KEY>')
client = cc_api.clients.update('CLIENT_ID',email='jane.doe@example.com')use ComplyCube\ComplyCubeClient;
$ccapi = new ComplyCubeClient('<YOUR_API_KEY>');
$updated = $ccapi->clients()->update($id, ['email' => 'jane.doe@example.com']);using ComplyCube.Net;
using ComplyCube.Net.Resources.Clients;
var clientApi = new ClientApi(new ComplyCubeClient("<YOUR_API_KEY>"));
var update = new ClientRequest {
email: "jane.doe@example.com",
personDetails = new PersonDetails {
firstName = "Jane",
lastName = "Doe"
}
};
var client = await clientApi.UpdateAsync("CLIENT_ID", update);{
"id": "5eb04fcd0f3e360008035eb1",
"type": "person",
"email": "jane.doe@example.com",
"mobile": "+12345678910",
"telephone": "+12 345678910",
"joinedDate": "2020-01-01",
"personDetails": {
"firstName": "Jane",
"lastName": "Doe",
"dob": "1995-12-20",
"nationality": "US"
},
"createdAt": "2020-01-04T17:24:29.146Z",
"updatedAt": "2020-01-04T17:13:10.712Z"
}