將檔案匯入 Agent。目前僅支援無程式碼代理程式。
HTTP 要求
POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*}/files:import
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
| parent | 
 這是必要旗標, | 
要求主體
要求主體包含下列結構的資料:
| JSON 表示法 | 
|---|
| { "fileName": string, "mimeType": string } | 
| 欄位 | |
|---|---|
| fileName | 
 這是必要旗標,檔案名稱。 | 
| mimeType | 
 (選用步驟) 檔案的內容類型,請參閱 https://www.iana.org/assignments/media-types/media-types.xhtml。 如果資料來源未提供內容類型,則此為必填欄位。 | 
回應主體
如果成功,回應主體會包含 ImportAgentFileResponse 的執行個體。
授權範圍
需要下列其中一種 OAuth 範圍:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/discoveryengine.readwrite
- https://www.googleapis.com/auth/discoveryengine.assist.readwrite
詳情請參閱Authentication Overview。