Skip to main content
POST
/
assistants
/
{assistant_id}
/
knowledge-bases
Attach Knowledge Bases To Assistant
curl --request POST \
  --url https://api.dev.opencorpus.ai/assistants/{assistant_id}/knowledge-bases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "knowledge_base_ids": [
    "<string>"
  ]
}
'
{
  "status": "<string>",
  "message": "<string>",
  "attached_knowledge_bases": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

assistant_id
string<uuid>
required

Body

application/json
knowledge_base_ids
string[]
required

Response

Successful Response

status
string
required
message
string
required
attached_knowledge_bases
Attached Knowledge Bases · object[]
required