Skip to main content

@wildix/wda-insights-client > PutPlaylistItemCommand

PutPlaylistItemCommand class

Adds an existing conversation to the specified playlist.

Signature:

export declare class PutPlaylistItemCommand extends PutPlaylistItemCommand_base 

Extends: PutPlaylistItemCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { WdaInsightsClient, PutPlaylistItemCommand } from "@wildix/wda-insights-client"; // ES Modules import
// const { WdaInsightsClient, PutPlaylistItemCommand } = require("@wildix/wda-insights-client"); // CommonJS import
const client = new WdaInsightsClient(config);
const input = { // PutPlaylistItemInput
company: "STRING_VALUE",
user: "STRING_VALUE",
playlistId: "STRING_VALUE", // required
target: { // ConversationTarget Union: only one key present
call: { // CallConversationTarget
callId: "STRING_VALUE", // required
flowIndex: Number("int"), // required
},
conference: { // ConferenceConversationTarget
conferenceId: "STRING_VALUE", // required
},
chat: { // ChatConversationTarget
chatId: "STRING_VALUE", // required
},
},
note: "STRING_VALUE",
};
const command = new PutPlaylistItemCommand(input);
const response = await client.send(command);
// {};