curl --request PUT \
--url https://chatbot.menuia.com/api/v2/ia/{id} \
--header 'Content-Type: application/json' \
--data '{
"authkey": "SUA_APPKEY",
"cpf": 1,
"email": 0,
"webhook": "https://meusite.com/webhook",
"device_id": 4586,
"send_audio": 1,
"receiver_audio": 1,
"voice": "m",
"agent_name": "Lab IA",
"system": "Você é uma Biomédica responsável por Laboratório de Análises Clínicas",
"stop_bot": 0,
"work_days": [
"seg",
"ter",
"qua",
"qui",
"sex",
"sab",
"dom"
],
"stop_client": 0,
"stop_server": 0,
"time_pause": "00:30:00",
"blacklist": [
"palavra1",
"palavra2"
],
"temperature": 0.3
}'
{
"status": 200,
"message": "Agente de IA atualizado com sucesso",
"data": {
"id": 35,
"cpf": 0,
"email": 0,
"webhook": "https://chatbot.menuia.com",
"user_id": 24,
"device_id": 1111,
"send_audio": 0,
"temperature": 0.3,
"receiver_audio": 1,
"voice": "m",
"agent_name": "AGENTE 2",
"system": null,
"stop_bot": 0,
"work_days": [
"seg",
"ter",
"qua",
"qui",
"sex",
"sab",
"dom"
],
"stop_client": null,
"stop_server": null,
"time_pause": "00:30:00",
"blacklist": null,
"created_at": "2025-08-31T00:38:08.000000Z",
"updated_at": "2025-08-31T00:59:28.000000Z"
}
}
Atualiza informações de um agente de IA pelo ID.
curl --request PUT \
--url https://chatbot.menuia.com/api/v2/ia/{id} \
--header 'Content-Type: application/json' \
--data '{
"authkey": "SUA_APPKEY",
"cpf": 1,
"email": 0,
"webhook": "https://meusite.com/webhook",
"device_id": 4586,
"send_audio": 1,
"receiver_audio": 1,
"voice": "m",
"agent_name": "Lab IA",
"system": "Você é uma Biomédica responsável por Laboratório de Análises Clínicas",
"stop_bot": 0,
"work_days": [
"seg",
"ter",
"qua",
"qui",
"sex",
"sab",
"dom"
],
"stop_client": 0,
"stop_server": 0,
"time_pause": "00:30:00",
"blacklist": [
"palavra1",
"palavra2"
],
"temperature": 0.3
}'
{
"status": 200,
"message": "Agente de IA atualizado com sucesso",
"data": {
"id": 35,
"cpf": 0,
"email": 0,
"webhook": "https://chatbot.menuia.com",
"user_id": 24,
"device_id": 1111,
"send_audio": 0,
"temperature": 0.3,
"receiver_audio": 1,
"voice": "m",
"agent_name": "AGENTE 2",
"system": null,
"stop_bot": 0,
"work_days": [
"seg",
"ter",
"qua",
"qui",
"sex",
"sab",
"dom"
],
"stop_client": null,
"stop_server": null,
"time_pause": "00:30:00",
"blacklist": null,
"created_at": "2025-08-31T00:38:08.000000Z",
"updated_at": "2025-08-31T00:59:28.000000Z"
}
}
O ID do agente a ser atualizado.
Agente de IA atualizado com sucesso
The response is of type object
.