- Copilots
- Document Catalog
- Document Collections
- Permissions Service
- Search
- Users
Request
1 import requests 2 3 # Add Collection To Copilot (POST /v0/copilots/addCollectionToCopilot) 4 response = 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 16 print(response.json())
Response