Update Agent
curl --request PUT \
--url https://api.formbharo.artpark.ai/api/v1/agents/{agent_id} \
--header 'Content-Type: application/json' \
--data '
{
"questions": [
{
"question": "<string>",
"advanced_instructions": "<string>",
"boolean_labels": {
"false": "<string>",
"true": "<string>"
},
"branch_id": "<string>",
"end_call_values": [
"<string>"
],
"name": "<string>",
"options": [
"<string>"
],
"required": true,
"retry_config": {
"allow_retries": true,
"exhausted_action": "skip",
"max_retries": 2,
"retry_messages": [
"<string>"
],
"until_answered": false
},
"script": "<string>",
"skip_message": "<string>",
"validation": {
"type": "<string>",
"rules": {}
}
}
],
"title": "<string>"
}
'import requests
url = "https://api.formbharo.artpark.ai/api/v1/agents/{agent_id}"
payload = {
"questions": [
{
"question": "<string>",
"advanced_instructions": "<string>",
"boolean_labels": {
"false": "<string>",
"true": "<string>"
},
"branch_id": "<string>",
"end_call_values": ["<string>"],
"name": "<string>",
"options": ["<string>"],
"required": True,
"retry_config": {
"allow_retries": True,
"exhausted_action": "skip",
"max_retries": 2,
"retry_messages": ["<string>"],
"until_answered": False
},
"script": "<string>",
"skip_message": "<string>",
"validation": {
"type": "<string>",
"rules": {}
}
}
],
"title": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"status": "<string>",
"version": 123
}{
"error": "<string>"
}{
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Agents
Update Agent
Update an existing agent with the given data.
PUT
/
api
/
v1
/
agents
/
{agent_id}
Update Agent
curl --request PUT \
--url https://api.formbharo.artpark.ai/api/v1/agents/{agent_id} \
--header 'Content-Type: application/json' \
--data '
{
"questions": [
{
"question": "<string>",
"advanced_instructions": "<string>",
"boolean_labels": {
"false": "<string>",
"true": "<string>"
},
"branch_id": "<string>",
"end_call_values": [
"<string>"
],
"name": "<string>",
"options": [
"<string>"
],
"required": true,
"retry_config": {
"allow_retries": true,
"exhausted_action": "skip",
"max_retries": 2,
"retry_messages": [
"<string>"
],
"until_answered": false
},
"script": "<string>",
"skip_message": "<string>",
"validation": {
"type": "<string>",
"rules": {}
}
}
],
"title": "<string>"
}
'import requests
url = "https://api.formbharo.artpark.ai/api/v1/agents/{agent_id}"
payload = {
"questions": [
{
"question": "<string>",
"advanced_instructions": "<string>",
"boolean_labels": {
"false": "<string>",
"true": "<string>"
},
"branch_id": "<string>",
"end_call_values": ["<string>"],
"name": "<string>",
"options": ["<string>"],
"required": True,
"retry_config": {
"allow_retries": True,
"exhausted_action": "skip",
"max_retries": 2,
"retry_messages": ["<string>"],
"until_answered": False
},
"script": "<string>",
"skip_message": "<string>",
"validation": {
"type": "<string>",
"rules": {}
}
}
],
"title": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"status": "<string>",
"version": 123
}{
"error": "<string>"
}{
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Path Parameters
Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Which letters saved text answers are written in. roman writes them in Latin letters, spelled out by sound and never translated. agent_language writes them in the letters of the agent's own language. Numbers and dates stay as digits either way.
Available options:
roman, agent_language Available options:
fixed, llm Show child attributes
Show child attributes