assign

Assign or unassign the selected conversations.

📘

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

function assign(teammateId: string | null, cancelToken?: CancelToken): Promise<void>;

Parameters

ParameterTypeDescription
teammateIdString | nullID of the teammate to assign the conversation to.
cancelTokenCancelToken (optional)Token to cancel the request.

To unassign the selected conversations, set the teammateId parameter to null.

Return value

The function returns a promise that resolves once Front receives the request.