Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

Add Collection To Copilot

POST/v0/copilots/addCollectionToCopilotAdd Collection To Copilot

Link a collection with a agent. The API Key used must be added to both the collection and the agent beforehand.

Request body

application/json
object
collectionIdstring · uuidrequired

Credal-generated collection ID to add.

copilotIdstring · uuidrequired

Credal-generated Agent ID to add the collection to.

Example request
{
  "collectionId": "00000000-0000-0000-0000-000000000000",
  "copilotId": "00000000-0000-0000-0000-000000000000"
}

Responses

200Successful response
Documentation menu