Update a client

Update a client

POST https://api.complycube.com/v1/clients/:id

Updates the specified client by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Once a client is created, their type can no longer be amended.

Path Parameters

Headers

Request Body

{
    "id": "5eb04fcd0f3e360008035eb1",
    "type": "person",
    "email": "jane.doe@example.com",
    "mobile": "+12 345678910",
    "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"
}

Example request

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"
						}
    	}'

Last updated