Setting legal hold for all organizations?

hello guys,
is it possible to set legal hold for all organizations? or is it possible to set legal hold via api?

Hey hey @exploiz65! How are you going?

Generally, yes! You can place legal holds on Orgs and Users:

https://docs.github.com/en/enterprise/2.21/admin/user-management/placing-a-legal-hold-on-a-user-or-organization

…with a GitHub Enterprise, account.

To my knowledge (someone correct me, if I’m wrong) it is indeed only available for Enterprise, but is not possible via API.