"Developers can push" from API

Hello.

How can I set “Developers can push” from the API? I can protect a branch just fine, but I cannot find the option to enable that setting. Any ideas?

Thanks,
Stefan.