Change the typebotlink by API

Hey, all Is it possible change the name of customDomain when it is created a typebot? Because I need to put the "null" parameter to work
No description
14 Replies
Baptiste
Baptiste4mo ago
I'm having a hard time understanding the issue. Can you provide more info on what you do and what error you see?
matheusmontenegro
I would like to change the name "company-employee.." via API. How can I do that? How can I define this name via API?
Baptiste
Baptiste4mo ago
You can update the customDomain field here
matheusmontenegro
When I try, a ERROR 500 is showed to me. I need to put "null" as parameters to work well. @Baptiste
Baptiste
Baptiste4mo ago
What do you mean? Can you share the payload you are sending?
matheusmontenegro
This is a json that it works but, if I change the "customDomain", ERROR: Bad request - please check your parameters 400 - "{\"message\":\"Input validation failed\",\"code\":\"BAD_REQUEST\",\"data\":{\"code\":\"BAD_REQUEST\",\"httpStatus\":400,\"path\":\"typebot.createTypebot\",\"zodError\":{\"formErrors\":[],\"fieldErrors\":{\"typebot\":[\"Invalid input\"]}}},\"issues\":[{\"code\":\"custom\",\"message\":\"Invalid input\",\"path\":[\"typebot\",\"customDomain\"]}]}"
Baptiste
Baptiste4mo ago
customDomain should look like this: typebot.io/my-path
matheusmontenegro
Can you see that image? When I sent the request, I created a customDomain, but now there are two. The second link doesn't works
No description
Baptiste
Baptiste4mo ago
Are you hosting on Vercel? This is the only way to make custom domains work
matheusmontenegro
Nope! I'm using Digital Ocean
Baptiste
Baptiste4mo ago
Then, you can't use custom domain feature 🙏
matheusmontenegro
🥲