0

Is there an endpoint to enable/ disable versioning for a document library? I'm using sharepoint online right btw

Hope Estheim
  • 11
  • 1
  • 3

1 Answers1

0

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

Michael Han
  • 3,475
  • 1
  • 6
  • 8