When using the WhatsApp API to clone a Flow, you might encounter the error: Only one clone source can be set.
You provided values for both clone_flow_id and clone_template.
This occurs when both clone_flow_id and clone_template parameters are included in your request. Since the API only allows one source for cloning, specifying both causes a conflict.
How to Fix It?
To resolve this, modify your request to include only one of these parameters:
1. If You Want to Clone an Existing Flow
Use clone_flow_id and remove clone_template:
{
"clone_flow_id": "1234567890",
"other_parameters": "value"
}
2. If You Want to Clone a Template
Use clone_template and remove clone_flow_id:
{
"clone_template": "welcome_message_template",
"other_parameters": "value"
}
This error is simple to fix by ensuring that only one cloning source is set in your request. For more insights related to WhatsApp Business API, check out heltar.com/blogs.