core.medplumclient.executebot
Home > @medplum/core > MedplumClient > executeBot
MedplumClient.executeBot() method
Executes a bot by ID or Identifier.
Signature:
executeBot(idOrIdentifier: string | Identifier, body: any, contentType?: string, options?: MedplumRequestOptions): Promise<any>;
Parameters
Parameter  | Type  | Description  | 
|---|---|---|
idOrIdentifier  | string | Identifier  | The Bot ID or Identifier.  | 
body  | any  | The content body. Strings and   | 
contentType  | string  | (Optional) The content type to be included in the "Content-Type" header.  | 
options  | (Optional) Optional fetch options.  | 
Returns:
Promise<any>
The Bot return value.