修改文件。
接口说明
方法
PUT
URI
/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
searchengine:ModifyFile |
*Instance
|
无 | 无 |
请求语法
PUT /openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| instanceId |
string |
是 |
实例 ID |
ha-cn-pl32rf0**** |
| indexName |
string |
是 |
索引名称 |
test_api |
| versionName |
string |
是 |
版本 |
ha-cn-pl32rf0****_online_config_v1 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| fileName |
string |
是 |
文件全路径名称 |
/schemas/generation_schema.json |
| body |
object |
否 |
请求体参数 |
{\"desc\":\"new version\"} |
| content |
string |
否 |
内容 |
{\"partition\":1} |
| partition |
integer |
否 |
分片数 |
1 |
请求示例
PUT /openapi/ha3/instances/ose-test1/indexes/index1/versions/version1?fileName=/root/test.txt
{
"partition": 1,
"content": ""
}
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| requestId |
string |
请求 ID。 |
89B968E6-1E41-58DF-BB25-5F98ECC759CE |
| result |
object |
返回结果。 |
{} |
返回示例
正确返回
{
"requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",
"result": {}
}
示例
正常返回示例
JSON格式
{
"requestId": "89B968E6-1E41-58DF-BB25-5F98ECC759CE",
"result": {}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。