简体   繁体   English

Sharepoint API:禁用文档库的版本控制

[英]Sharepoint API: Disable versioning of a document library

Is there an endpoint to enable/ disable versioning for a document library?是否有一个端点可以启用/禁用文档库的版本控制? I'm using sharepoint online right btw顺便说一句,我正在使用在线共享点

You could enbale versioning for the library like this:您可以像这样为库启用版本控制:

POST https://{site_url}/_api/web/lists/getByTitle('Documents')
{
 __metadata:
 {
  type: "SP.List"
 },
 EnableVersioning: true
}

Reference: https://www.codesharepoint.com/rest-api/enable-versioning-in-sharepoint-using-rest-api参考: https : //www.codesharepoint.com/rest-api/enable-versioning-in-sharepoint-using-rest-api

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM