BotCreate
- channelType: ChannelFamilyenum
_family requiredvalueslandbotwhatsappfacebookapichat - nameType: stringmax length:50required
- diagramType: DiagramProperties: 3
The diagram the bot is born with, stored exactly as sent.
Checked before anything else: break a rule and you get
422with nothing created. This is the one place a block we do not describe is refused rather than stored.Omit it and the bot starts with a start point and nothing else. Cannot go with
source. - sourceType: BotSourceProperties: 1
Duplicate an existing bot. Not served yet: on its own it is refused with
501and nothing is created. Cannot be combined withdiagram; sending both is rejected with422. - workspaceType: integer
The workspace to file the bot under. A workspace that does not exist, or belongs to another brand, is rejected with
422.
Examples
{
"name": "Support bot",
"channel_family": "landbot"
}