Update Agent
curl --request PATCH \
--url https://api.agentline.cloud/v1/agents/{agent_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"system_prompt": "<string>",
"initial_greeting": "<string>",
"voice_id": "<string>",
"transfer_number": "<string>",
"voicemail_message": "<string>",
"owner_phone": "<string>"
}
'import requests
url = "https://api.agentline.cloud/v1/agents/{agent_id}"
payload = {
"name": "<string>",
"system_prompt": "<string>",
"initial_greeting": "<string>",
"voice_id": "<string>",
"transfer_number": "<string>",
"voicemail_message": "<string>",
"owner_phone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
system_prompt: '<string>',
initial_greeting: '<string>',
voice_id: '<string>',
transfer_number: '<string>',
voicemail_message: '<string>',
owner_phone: '<string>'
})
};
fetch('https://api.agentline.cloud/v1/agents/{agent_id}', 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": {}
}
]
}Agents
Update Agent
Update an AI voice agent’s configuration.
Modify any combination of the agent’s settings: system prompt, voice, greeting, transfer number, or voicemail message. Changes take effect on the next call the agent handles. Only include the fields you want to change — unset fields are preserved.
PATCH
/
v1
/
agents
/
{agent_id}
Update Agent
curl --request PATCH \
--url https://api.agentline.cloud/v1/agents/{agent_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"system_prompt": "<string>",
"initial_greeting": "<string>",
"voice_id": "<string>",
"transfer_number": "<string>",
"voicemail_message": "<string>",
"owner_phone": "<string>"
}
'import requests
url = "https://api.agentline.cloud/v1/agents/{agent_id}"
payload = {
"name": "<string>",
"system_prompt": "<string>",
"initial_greeting": "<string>",
"voice_id": "<string>",
"transfer_number": "<string>",
"voicemail_message": "<string>",
"owner_phone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
system_prompt: '<string>',
initial_greeting: '<string>',
voice_id: '<string>',
transfer_number: '<string>',
voicemail_message: '<string>',
owner_phone: '<string>'
})
};
fetch('https://api.agentline.cloud/v1/agents/{agent_id}', 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": {}
}
]
}Authorizations
Body
application/json
Response
Successful Response