Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

On this pageOverview

Add Collection To Copilot

POST https://api.credal.ai/api/v0/copilots/addCollectionToCopilot Content-Type: application/json

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

Reference: https://docs.credal.ai/api-reference/api-reference/copilots/add-collection-to-copilot

  • Authorization header (bearer token, required) — Bearer authentication of the form Bearer <token>, where token is your auth token.

Body (application/json)

This endpoint expects an object.

  • copilotId (UUID, required) — Credal-generated Agent ID to add the collection to.
  • collectionId (UUID, required) — Credal-generated collection ID to add.

Examples

Request

JSON
{
  "copilotId": "82e4b12a-6990-45d4-8ebd-85c00e030c24",
  "collectionId": "def1055f-83c5-43d6-b558-f7a38e7b299e"
}
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu