Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

BotVersionActivation Class

Access and update activation information of a bot version.

Namespace

ConnectApi

BotVersionActivation Methods

These methods are for BotVersionActivation. All methods are static.

getVersionActivationInfo(botVersionId)

Get the active or inactive status of the bot version.

API Version

50.0

Requires Chatter

No

Signature

public static ConnectApi.BotVersionActivationInfo getVersionActivationInfo(String botVersionId)

Parameters

botVersionId
Type: String
ID of the bot version.

Usage

To access this method, enable the bot feature, and the user must be an admin or have the Manage Bots or Manage Bots Training Data user permissions.

updateVersionStatus(botVersionId, status, postBody)

Update the status of the specified bot version.

API Version

50.0

Requires Chatter

No

Signature

public static ConnectApi.BotVersionActivationInfo updateVersionStatus(String botVersionId, ConnectApi.BotVersionActivationStatus status, ConnectApi.BotVersionActivationInput postBody)

Parameters

botVersionId

Type: String

ID of the bot version.

status

Type: ConnectApi.BotVersionActivationStatus

Activation status of the bot version. Values are:

  • Active
  • Inactive

Activation status must be specified in the status or postBody parameter.

postBody

Type: ConnectApi.BotVersionActivationInput

Parameters to update for the bot version. Activation status must be specified in the status or postBody parameter.

Usage

To access this method, enable the bot feature, and the user must be an admin or have the Manage Bots or Manage Bots Training Data user permissions.