Skip to main content

Update a bot

import botfleet

botfleet.api_key = "YOUR_API_KEY"

botfleet.Bot.update(
id="15d19ca3-26f1-4adb-9cea-3955b73d9b4e",
name="Updated name",
script="def main(request, store):\n return 'Hello!'",
requirements="requests==2.31.0",
env_vars="FOO=bar",
python_version="3.10",
store_id="0aff0e0d-f854-4d60-8638-141ef2c624d2",
)

The following fields can be updated: name, script, requirements, env_vars, python_version, store_id.

Returns a Bot object.