@wildix/wda-insights-client > DeletePlaylistItemCommand
DeletePlaylistItemCommand class
Removes a conversation from the specified playlist.
Signature:
export declare class DeletePlaylistItemCommand extends DeletePlaylistItemCommand_base
Extends: DeletePlaylistItemCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WdaInsightsClient, DeletePlaylistItemCommand } from "@wildix/wda-insights-client"; // ES Modules import
// const { WdaInsightsClient, DeletePlaylistItemCommand } = require("@wildix/wda-insights-client"); // CommonJS import
const client = new WdaInsightsClient(config);
const input = { // DeletePlaylistItemInput
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
},
},
};
const command = new DeletePlaylistItemCommand(input);
const response = await client.send(command);
// {};