SOLVED

REST API to apply a retention Label

Copper Contributor

Is there a REST method to apply/update a retention label on a file in a library?

22 Replies
Hello! 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!

@HerschelJ yes, you can do this through CSOM at this time only

Did you get an answer? I have the retention labels working, but trying to do the same for sensitivity. Thanks.