Skip to main content
PUT
/
api
/
v2
/
ia
/
{id}
Atualiza um agente de IA existente
curl --request PUT \
  --url https://chatbot.menuia.com/api/v2/ia/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_name": "Lab IA",
  "authkey": "SUA_APPKEY",
  "cpf": 1,
  "email": 0,
  "webhook": "https://meusite.com/webhook",
  "device_id": 4586,
  "send_audio": 1,
  "receiver_audio": 1,
  "voice": "m",
  "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"
  }
}

Descrição

Este endpoint permite atualizar as informações de um agente de IA existente, incluindo nome, dispositivo, webhook, voz, dias de trabalho, sistema e outras configurações.

Query Parameters

id
string
required

O ID do agente a ser atualizado.

Body

application/json
agent_name
string
required
Example:

"Lab IA"

authkey
string
Example:

"SUA_APPKEY"

cpf
boolean
Example:

1

email
boolean
Example:

0

webhook
string
Example:

"https://meusite.com/webhook"

device_id
integer
Example:

4586

send_audio
boolean
Example:

1

receiver_audio
boolean
Example:

1

voice
string
Example:

"m"

system
string | null
Example:

"Você é uma Biomédica responsável por Laboratório de Análises Clínicas"

stop_bot
boolean
Example:

0

work_days
string[]
Example:
[
"seg",
"ter",
"qua",
"qui",
"sex",
"sab",
"dom"
]
stop_client
boolean
Example:

0

stop_server
boolean
Example:

0

time_pause
string
Example:

"00:30:00"

blacklist
string[]
Example:
["palavra1", "palavra2"]
temperature
number
Example:

0.3

Response

200 - application/json

Agente de IA atualizado com sucesso

status
integer
Example:

200

message
string
Example:

"Agente de IA atualizado com sucesso"

data
object
Example:
{
"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"
}