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
Baptiste14mo 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
matheusmontenegroOP14mo ago
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
Baptiste14mo ago
You can update the customDomain field here
matheusmontenegro
matheusmontenegroOP14mo ago
When I try, a ERROR 500 is showed to me. I need to put "null" as parameters to work well. @Baptiste
Baptiste
Baptiste14mo ago
What do you mean? Can you share the payload you are sending?
matheusmontenegro
matheusmontenegroOP14mo ago
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
Baptiste14mo ago
customDomain should look like this: typebot.io/my-path
matheusmontenegro
matheusmontenegroOP14mo ago
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
Baptiste14mo ago
Are you hosting on Vercel? This is the only way to make custom domains work
matheusmontenegro
matheusmontenegroOP14mo ago
Nope! I'm using Digital Ocean
Baptiste
Baptiste14mo ago
Then, you can't use custom domain feature 🙏
matheusmontenegro
matheusmontenegroOP14mo ago
🥲

Did you find this page helpful?