baptisteArno / typebot.io

💬 Typebot is a powerful chatbot builder that you can self-host.
https://typebot.io
Other
5.77k stars 1.59k forks source link

Api method publish doesn't work as expected #1603

Closed mzhirnov1 closed 4 days ago

mzhirnov1 commented 1 week ago

Hello! API method "Publish" doesn't publish a bot. Curl return "success" but bot is "404 The bot you're looking for doesn't exist" But if I press button "Publish" in admin panel - bot will start work. curl --request POST \ --url https://typebot.yodo.im/api/v1/typebots/clxj1s9fj01izz3n3k99jsvtk/publish \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ -v

mzhirnov1 commented 4 days ago

any news about that?

baptisteArno commented 4 days ago

Because your typebot is probably missing a publicId field?

  1. Add a publicId field to the typebot
  2. Publish the bot