从会话中移除上下文文件。
HTTP 请求
POST https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}:removeContextFile
网址采用 gRPC 转码语法。
路径参数
| 参数 | |
|---|---|
name | 
                
                   
 必需。会话的名称。 格式:  | 
              
请求正文
请求正文中包含结构如下的数据:
| JSON 表示法 | 
|---|
{ "fileId": string }  | 
                
| 字段 | |
|---|---|
fileId | 
                  
                     
 必需。上下文文件的 ID。  | 
                
响应正文
如果成功,则响应正文为空。
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/discoveryengine.readwritehttps://www.googleapis.com/auth/discoveryengine.assist.readwrite
如需了解详情,请参阅 Authentication Overview。
IAM 权限
需要拥有 name 资源的以下 IAM 权限:
discoveryengine.sessions.removeContextFile
如需了解详情,请参阅 IAM 文档。