Saltar para o conteúdo principal
POST
/
public
/
api
/
v1
/
agents
/
{agentPublicId}
/
knowledge-sources
Link a knowledge source to the agent
curl --request POST \
  --url https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/knowledge-sources \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "knowledgeSourcePublicId": "9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21"
}
'
{
  "active": true,
  "knowledgeSourceName": "<string>",
  "knowledgeSourcePublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

agentPublicId
string<uuid>
obrigatório

Corpo

application/json

Body for linking an existing knowledge source to an agent.

knowledgeSourcePublicId
string<uuid>
obrigatório

Public ID of the knowledge source to link to the agent.

Exemplo:

"9c3a4d22-1a8d-4b3f-9b1e-7a0f0c4f3e21"

Resposta

Knowledge source linked

Knowledge source linked to an agent.

active
boolean
knowledgeSourceName
string
knowledgeSourcePublicId
string<uuid>