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?: RequestInit): Promise<any>;
Parameters
Parameter | Type | Description |
---|---|---|
idOrIdentifier | string | Identifier | The Bot ID or Identifier. |
body | any | The content body. Strings and File objects are passed directly. Other objects are converted to JSON. |
contentType | string | (Optional) The content type to be included in the "Content-Type" header. |
options | RequestInit | (Optional) Optional fetch options. |
Returns:
Promise<any>
The Bot return value.