Using the OneDrive API, is there a way to set the "always keep on this device" enabled for a folder?

Scott Countryman 5 Reputation points
2024-08-27T19:38:45.5+00:00

I would like to cycle through a given list of userIDs, retrieve a reference to their OneDrives, and then for a given DriveItem (Folder) enable "always keep on this device". I know how to do all of it but the last part, and I'm not sure it is possible. Any thoughts? Thx!

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,142 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,989 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.