Forum Discussion
Joe James
Oct 25, 2018Copper Contributor
REST API to apply a retention Label
Is there a REST method to apply/update a retention label on a file in a library?
- Nov 16, 2018
thanks, we are planning to release a REST API which will create the event-based retention by the end of year so stay tune (see this demo we did at Ignite: https://youtu.be/gBNcHJ7ERl8?t=2848
Rishi Gupta
Oct 18, 2021Brass Contributor
Do we have API's which can be used to apply the retention labels for a SharePoint site or is there any alternate view to apply the retention labels programmatically on a site?
robertoy
Microsoft
Nov 09, 2021Rishi Gupta You can set the values today on the columns but we do have in the roadmap a REST API that makes labeling simpler, stay tuned for that.
- HerschelJDec 01, 2022Brass ContributorHello! I am looking for a way to GET/SET the Compliance Tag / Retention Label on a library level via API, is this possible? I would love to create a Power Automate to run on all newly created Teams/SharePoint sites and set the Retention Labels on their Documents library to adhere to our policy, ive found hundreds of examples on how to set on items, but I just want to set on the library itself. thanks!