Skip to main content

updateConfig()

This function allows you to update multiple configuration values at the same time. You can see the relevant documentation for each config value to find more information about allowed values. Here is the function API and some example usage:

export type MutableConfigState = {
partner: Partner;
messagingTopic: MessagingTopic;
language: Language;
};

/**
* Updates one or many MutableConfig values
* @param config - The new config values that will be set
*/
export const updateConfig = async (config: MutableConfigState): Promise<void>;

const someFunction = () => {
updateConfig({
partner: Partner.ATT,
messagingTopic: MessagingTopic.GENERAL_CONVERSATION,
});
}