Hi,
I am trying to change the "Allow management of content types" setting on an existing library to test the behaviour. We are currently building a new structure of sites and the sites themselves have been created but this setting needs to be enabled on all of them.
Is this possible or is this a setting that can only be provided during the creation of the document library?
Afterwards I would have to add a custom content type to the document library. How should I do this as I have been looking this up and it seems that the way you do this has changed recently.
What I have tried so far is this:

but this gives an error as Patch is not supported on the list collection.
I have also tried it with post but then I get this error(which I guess has to do with the fact that it thinks I'm trying to create a library and therefore provide no library title):

If anyone has an idea of what I could do that would be much appreciated! Thanks!