Ir al contenido

Cargar respuestas (FAQ)

POST
/partner/tenants/{tenant_id}/kb/answers
curl --request POST \
--url https://api.overtaker.online/api/v1/partner/tenants/example/kb/answers \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "entries": [ { "question": "example", "answer": "example", "tags": [ "example" ] } ] }'

Carga un lote de pares pregunta/respuesta al KB del tenant. Máximo 200 por request.

tenant_id
required
Tenant Id
string
Media type application/json
PartnerAnswersLoad
object
entries
required
Entries
Array<object>
AnswerEntry
object
question
required
Question
string
answer
required
Answer
string
tags
Any of:
Array<string>
Example generated
{
"entries": [
{
"question": "example",
"answer": "example",
"tags": [
"example"
]
}
]
}

Successful Response

Media type application/json
KBLoadResult
object
created
required
Created
integer
source_id
required
Source Id
string
Example generated
{
"created": 1,
"source_id": "example"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}