Skip to main content

@wildix-internal/wim-integrations-client > PutIntegrationCommand

PutIntegrationCommand class

Signature:

export declare class PutIntegrationCommand extends PutIntegrationCommand_base 

Extends: PutIntegrationCommand_base

Example

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

import { WimIntegrationsServiceClient, PutIntegrationCommand } from "@wildix-internal/wim-integrations-client"; // ES Modules import
// const { WimIntegrationsServiceClient, PutIntegrationCommand } = require("@wildix-internal/wim-integrations-client"); // CommonJS import
const client = new WimIntegrationsServiceClient(config);
const input = { // PutIntegrationInput
service: "salesforce" || "hubspot" || "google_calendar" || "microsoft_calendar" || "salesforce_community" || "bamboo_hr" || "microsoft_presence" || "iframe_integration" || "webhook" || "hubspot_backend" || "salesforce_backend" || "salesforce_telephony" || "gong", // required
status: "deleting" || "installing" || "warning" || "enabled" || "disabled" || "suspended" || "broken",
entityType: "sf_partner" || "main",
statusChangeDate: "STRING_VALUE",
errorInfo: "DOCUMENT_VALUE",
warningInfo: "DOCUMENT_VALUE",
data: "DOCUMENT_VALUE",
companyId: "STRING_VALUE", // required
integrationId: "STRING_VALUE",
};
const command = new PutIntegrationCommand(input);
const response = await client.send(command);
// { // PutIntegrationOutput
// item: { // Integration
// service: "salesforce" || "hubspot" || "google_calendar" || "microsoft_calendar" || "salesforce_community" || "bamboo_hr" || "microsoft_presence" || "iframe_integration" || "webhook" || "hubspot_backend" || "salesforce_backend" || "salesforce_telephony" || "gong", // required
// status: "deleting" || "installing" || "warning" || "enabled" || "disabled" || "suspended" || "broken",
// entityType: "sf_partner" || "main",
// statusChangeDate: "STRING_VALUE",
// errorInfo: "DOCUMENT_VALUE",
// warningInfo: "DOCUMENT_VALUE",
// data: "DOCUMENT_VALUE",
// integrationId: "STRING_VALUE", // required
// externalId: "STRING_VALUE",
// companyId: "STRING_VALUE", // required
// },
// };