POSThttps://api.credal.ai/api/v0/copilots/addCollectionToCopilot
Body Parameters
View in API Reference
Request
1import requests
2
3# Add Collection To Copilot (POST /v0/copilots/addCollectionToCopilot)
4response = requests.post(
5 "https://api.credal.ai/api/v0/copilots/addCollectionToCopilot",
6 headers={
7 "Authorization": "Bearer ",
8 "Content-Type": "application/json"
9 },
10 json={
11 "copilotId": "82e4b12a-6990-45d4-8ebd-85c00e030c24",
12 "collectionId": "def1055f-83c5-43d6-b558-f7a38e7b299e"
13 },
14)
15
16print(response.json())
Response