提供: Bright Pattern Documentation
移動先: 案内、 検索
• English

replaceNote

既存のメモをすべて消去し、インタラクションに新規のメモを追加します。interactionId が指定されていない場合、このメソッドは現在アクティブなインタラクションのメモを設定します。

リクエスト

構文

replaceNote(note: string, interactionId?: string): Promise<OperationResult<null>>

パラメータ

パラメータ パラメータ値 データ型 オプション/必須 説明
note 文字列 必須 そのインタラクションについて、その他すべての既存のメモを置き換える対象となるメモです。
interactionId 文字列 オプション 置き換えられるメモが適用されるインタラクションの固有のIDです。

リクエスト例

   replaceNoteButton.onclick = () => {
       const note = noteInput.value
       const itemId = notesInteractionIdInput.value
       adApi.replaceNote(note, itemId)
   }

戻り値

null

< 前へ | 次へ >