Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.44 KB

bot-deploy.md

File metadata and controls

39 lines (30 loc) · 1.44 KB

import ExampleCode from '!!raw-loader!@site/..//examples/src/api/fhir/operations/bot-deploy.ts'; import MedplumCodeBlock from '@site/src/components/MedplumCodeBlock'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

Bot Deploy

Medplum Bots can be deployed using the $deploy operation.

If you're not familiar with Medplum Bots, you may want to review the Bot Basics documentation first.

Invoke $deploy Operation

To use the $deploy operation, you will need to make a POST request with the Bot's id. Additionally, the $deploy operation takes two body parameters:

  1. filename: The name of the file the bot is stored in. If left blank, it will default to index.js.
  2. code: The bot's code that will be executed when it is run.
{ExampleCode} {ExampleCode} {ExampleCode}

Related Documentation

To learn more about more about Bots and deploying them, see the Bots In Production docs.