Reference Clone
This endpoint will create a referenced clone of a bot. The source bot will automatically become a Bot Master and the new bot a referenced clone.
An active Master Bot package is required in order to use this endpoint.

Request

The following request will create a referenced clone:
1
curl --location --request POST 'https://<NODE>.xenioo.com/bot/refclone' \
2
--header 'Authorization: Bearer <ACCOUNT_AUTH_TOKEN>' \
3
--header 'Content-Type: application/json' \
4
--data-raw '{
5
"Source":{
6
"BotAPIKey":"<BOT API KEY>",
7
"BotSecret":"<BOT API SECRET>"
8
}
9
}'
Copied!
Reference clones chatbots retain by default all of the contents of the original chatbot. Tagged variables are ignored in this call.

Response

If successful, the response will contain both the API Token and the API Secret of the newly created chatbot.
1
{
2
"APIKey":"...",
3
"APISecret":"...."
4
}
Copied!

Response Codes

This endpoint will reply with the following standard HTTP codes.
Code
Meaning
200
Ok. The request has been successfully fulfilled.
404
Not Found. The specified source chatbot have not been found.
Last modified 10mo ago