@wildix/xbees-conversations-client > PartialUpdateChannelCommand
PartialUpdateChannelCommand class
Partially updates the details of an existing channel. This operation allows for updating specific channel properties without altering the entire resource.
Signature:
export declare class PartialUpdateChannelCommand extends PartialUpdateChannelCommand_base
Extends: PartialUpdateChannelCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, PartialUpdateChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, PartialUpdateChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // PartialUpdateChannelInput
channelId: "STRING_VALUE", // required
userId: "STRING_VALUE",
silent: true || false,
set: { // PartialUpdateChannelSetOptions
subject: "STRING_VALUE",
description: "STRING_VALUE",
picture: "STRING_VALUE",
pictureColor: "STRING_VALUE",
access: "private" || "public",
broadcast: true || false,
},
unset: [ // PartialUpdateChannelUnsetOptions
"subject" || "description" || "picture" || "pictureColor" || "access" || "broadcast",
],
};
const command = new PartialUpdateChannelCommand(input);
const response = await client.send(command);
// { // PartialUpdateChannelOutput
// channel: { // Channel
// subject: "STRING_VALUE",
// description: "STRING_VALUE",
// picture: "STRING_VALUE",
// pictureColor: "STRING_VALUE",
// access: "private" || "public",
// company: "STRING_VALUE",
// context: { // ChannelContext
// source: "kite",
// target: "STRING_VALUE",
// events: [ // ChannelContextEventList
// { // ChannelContextEvent
// id: "STRING_VALUE",
// owner: "STRING_VALUE",
// start: "STRING_VALUE",
// end: "STRING_VALUE",
// summary: "STRING_VALUE",
// attendees: [ // ChannelContextEventAttendeeList
// { // ChannelContextEventAttendee
// email: "STRING_VALUE", // required
// name: "STRING_VALUE",
// status: "accepted" || "tentative" || "declined" || "none", // required
// },
// ],
// },
// ],
// },
// kite: true || false,
// kiteTarget: "STRING_VALUE",
// kiteVariant: "STRING_VALUE",
// kiteAssign: "STRING_VALUE",
// kiteServiceName: "STRING_VALUE",
// kiteDefaultSubject: "STRING_VALUE",
// service: "STRING_VALUE",
// serviceTitle: "STRING_VALUE",
// serviceRecipient: "STRING_VALUE",
// assignee: { // User
// id: "STRING_VALUE", // required
// name: "STRING_VALUE",
// email: "STRING_VALUE",
// phone: "STRING_VALUE",
// picture: "STRING_VALUE",
// locale: "STRING_VALUE",
// timeZone: "STRING_VALUE",
// company: "STRING_VALUE",
// bot: true || false,
// pbxDomain: "STRING_VALUE",
// pbxPort: "STRING_VALUE",
// pbxExtension: "STRING_VALUE",
// pbxSerial: "STRING_VALUE",
// pbxUserId: "STRING_VALUE",
// createdAt: "STRING_VALUE",
// updatedAt: "STRING_VALUE",
// },
// telephony: true || false,
// sms: true || false,
// mms: true || false,
// whatsapp: true || false,
// whatsappStatus: "24h_channel_closed",
// broadcast: true || false,
// external: true || false,
// channelId: "STRING_VALUE", // required
// channelType: "direct" || "group", // required
// memberCount: Number("int"), // required
// createdAt: "STRING_VALUE", // required
// createdBy: "STRING_VALUE", // required
// updatedAt: "STRING_VALUE",
// },
// };