You could achieve that using the Java API. At least that's what I'm working with.
Some classes that might help you there might be:
I never used the REST API but maybe this link might help you:
This is a deprecated REST API though, but it should still work.
Hi there, a few of us at Atlassian would love to learn about how you use "space settings" functionality in Confluence. A facelift to the space settings is long overdue and we want to start with impro...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events