#You're correct, the POST request alone
1 messages · Page 1 of 1 (latest)
hi! Finally getting time to look at this issue
I'm getting the following error :
{
"detail": [
{
"loc": [
"body",
"conversation_config"
],
"msg": "field required",
"type": "value_error.missing"
},
{
"loc": [
"body",
"platform_settings"
],
"msg": "field required",
"type": "value_error.missing"
},
{
"loc": [
"body",
"secrets"
],
"msg": "field required",
"type": "value_error.missing"
},
{
"loc": [
"body",
"name"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}
With this request :
await fetch(https://api.elevenlabs.io/v1/convai/agents/agentId, {
method: 'PATCH',
headers: {
'xi-api-key': apiKey
},
body: JSON.stringify({
"conversation_config": {
"agent": {
"prompt": {
"knowledge_base": [
{
"type": "file",
"name": "transcript",
"id": ID-FROM-ADD-TO-KNOWLEDGES-CALL
}
]
}
}
}
})
});
the documentation didn't move since last time though 😳 I guess the id I'm getting back from the add-to-knowledges base is the one for the id in the PATCH request ?
all goodie good, the issue was on the header content-type