From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19


rejectInteraction

Reject an incoming interaction.

Request

Syntax

rejectInteraction(interactionId?: string): Promise<OperationResult<null>>

Parameters

Parameter Parameter Values Data Type Optional/Required Description
interactionId String Optional The ID of the incoming interaction. If the ID is not specified, the active interaction will be tried.

Example Request

    rejectInteractionButton.onclick = () => {

        const itemId = activeInteractionIdInput.value

        adApi.rejectInteraction(itemId)

    }

Return Value

null

< Previous | Next >