Developers

SetClientId

Usage

Use this method to associate a string ID to an existing session of the Knowledge SDK.

client.setClientId({clientId:String});

Note

The clientId is validated and casted to the String class before it is assigned to the API client ID. In case it is invalid, it is set to null. If the clientId is not specified, it is set to null as well. In both cases, it does not affect the Knowledge SDK behavior.

Mandatory parameters

This method does not have any mandatory parameters.

Options

This method does not have any options.

Response data format

This method does not return any values.

Example

The following example sets the clientId using an external ID:

var sdk = InbentaKmSDK.createFromAccessToken(token, key);
var externalId = externalSource.getId();
sdk.client.setClientId(externalId);