@wildix/wda-insights-client > UpdatePlaylistCommand
UpdatePlaylistCommand class
Updates an existing playlist's configuration.
Signature:
export declare class UpdatePlaylistCommand extends UpdatePlaylistCommand_base
Extends: UpdatePlaylistCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WdaInsightsClient, UpdatePlaylistCommand } from "@wildix/wda-insights-client"; // ES Modules import
// const { WdaInsightsClient, UpdatePlaylistCommand } = require("@wildix/wda-insights-client"); // CommonJS import
const client = new WdaInsightsClient(config);
const input = { // UpdatePlaylistInput
name: "STRING_VALUE", // required
description: "STRING_VALUE",
company: "STRING_VALUE",
user: "STRING_VALUE",
id: "STRING_VALUE", // required
};
const command = new UpdatePlaylistCommand(input);
const response = await client.send(command);
// { // UpdatePlaylistOutput
// playlist: { // Playlist
// name: "STRING_VALUE", // required
// description: "STRING_VALUE",
// id: "STRING_VALUE", // required
// createdAt: "STRING_VALUE", // required
// createdBy: "STRING_VALUE", // required
// createdByName: "STRING_VALUE", // required
// updatedAt: "STRING_VALUE",
// access: { // PlaylistAccess
// visibility: "explicit" || "organization",
// grants: [ // PlaylistGrantList
// { // PlaylistGrant
// permission: "view" || "edit", // required
// principal: { // PlaylistPrincipal Union: only one key present
// userId: "STRING_VALUE",
// groupId: "STRING_VALUE",
// },
// },
// ],
// },
// itemsCount: Number("int"), // required
// },
// };