Reassign Number
curl --request PATCH \
--url https://api.agentline.cloud/v1/numbers/{number_id}/reassign \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/numbers/{number_id}/reassign"
headers = {"Authorization": "Bearer <token>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/numbers/{number_id}/reassign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Numbers
Reassign Number
Reassign a phone number to a different AI agent.
Moves an existing phone number from one AI agent to another. The target agent must not already have an active number assigned. The phone number remains active — only the agent ownership changes.
PATCH
/
v1
/
numbers
/
{number_id}
/
reassign
Reassign Number
curl --request PATCH \
--url https://api.agentline.cloud/v1/numbers/{number_id}/reassign \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/numbers/{number_id}/reassign"
headers = {"Authorization": "Bearer <token>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agentline.cloud/v1/numbers/{number_id}/reassign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}