功能描述
用于设置历史版本配置信息。
说明:
请求
请求示例
POST /api/v1/directory-history/{LibraryId}/library-history?access_token={AccessToken}
请求参数
请求体
application/json
{"enableFileHistory": true, // 是否开启历史版本"fileHistoryCount": 30, // 历史版本最大数量(个)"fileHistoryExpireDay": 90, // 历史版本过期时间(天)"isClearFileHistory": true, // 是否清除历史版本"mergeInterval": 10 // 历史版本合并时间(秒)}
请求字段说明:
请求参数 | 描述 | 类型 | 是否必选 |
enableFileHistory | 是否打开历史版本 | Boolean | 是 |
fileHistoryCount | 历史版本最大数量 | Int | 否 |
fileHistoryExpireDay | 历史版本过期时间 | Int | 否 |
isClearFileHistory | 是否清除历史版本,在关闭历史版本时传入 | Boolean | 否 |
mergeInterval | 历史版本合并时间 | Int | 否 |
响应
响应码
设置成功,返回 HTTP 204 No Content。
响应体
该请求无响应体。