Is there a API attribute for WorkDrive to disable "allow files and folders to shared outside this team"

Is there a API attribute for WorkDrive to disable "allow files and folders to shared outside this team"

I have over 3000 team folders. Is there an  atrribute/method via API to disable 1000 of those folders?