addTopic

Add a topic to the selected conversations.

📘

This function is only available on context of types SINGLE_CONVERSATION and MULTI_CONVERSATIONS

function addTopic(externalUrl: string, name?: string, cancelToken?: CancelToken): Promise<Topic>;

Front deduplicates Topic by their type and URL. If a topic already exists, the selected conversations will be added to the existing one.

Parameters

Parameter

Type

Description

externalUrl

String

URL of the topic.

name

String (optional)

Human readable name.

cancelToken

CancelToken (optional)

Token to cancel the request.

Return value

The function returns a promise that resolves with the Topic added.