Use this method to associate a string ID to an existing session of the Knowledge SDK.
client.setClientId({clientId:String});
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.
This method does not have any mandatory parameters.
This method does not have any options.
This method does not return any values.
The following example sets the clientId
using an external ID:
var sdk = InbentaKmSDK.createFromAccessToken(token, key);
var externalId = externalSource.getId();
sdk.client.setClientId(externalId);