Migration Split
Delete Migration Split
Remove a pathway’s migration split so all its traffic runs on the pathway.
DELETE
/
v1
/
convo_pathway
/
{pathway_id}
/
migration_split
Delete Migration Split
curl --request DELETE \
--url https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split \
--header 'authorization: <authorization>'import requests
url = "https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split"
headers = {"authorization": "<authorization>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {authorization: '<authorization>'}};
fetch('https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split")
.header("authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"data": {
"deleted": true
},
"errors": null
}
{
"data": null,
"errors": [
{
"error": "NOT_FOUND",
"message": "Pathway not found"
}
]
}
Removes the migration split from a V1 pathway. From the next call, all of the pathway’s traffic runs on the pathway. A rollout over the split never blocks this request, and the rollout ends. The request succeeds even when the pathway has no split.
Delete the split before you attach the pathway’s numbers to an agent or a persona: while a split exists, even at
Docs for agents: llms.txt
0%, Attach Numbers to Agent and Attach Phone Numbers to Persona return 409 MIGRATION_EXPERIMENT_NUMBER for those numbers. To keep the split but send no traffic, use Set Migration Split with v2_percentage set to 0.
Requires an admin, owner, or operator role.
Headers
Path Parameters
The V1 pathway. Must be a UUID of a pathway in your organization. Returns
400 BAD_REQUEST for an invalid UUID, 404 NOT_FOUND for a pathway outside your organization, and 400 BAD_REQUEST for a pathway that Bland compiled from a V2 agent.Response
{
"data": {
"deleted": true
},
"errors": null
}
{
"data": null,
"errors": [
{
"error": "NOT_FOUND",
"message": "Pathway not found"
}
]
}
Docs for agents: llms.txt
Was this page helpful?
⌘I
Delete Migration Split
curl --request DELETE \
--url https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split \
--header 'authorization: <authorization>'import requests
url = "https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split"
headers = {"authorization": "<authorization>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {authorization: '<authorization>'}};
fetch('https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split")
.header("authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v1/convo_pathway/{pathway_id}/migration_split")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"data": {
"deleted": true
},
"errors": null
}
{
"data": null,
"errors": [
{
"error": "NOT_FOUND",
"message": "Pathway not found"
}
]
}