Adjusting visibility of specific projects

How do you via the API adjust visibility?

I see very limited options via:
https://docs.gitlab.com/ee/api/projects.html#edit-project

Not sure if im doing something wrong but cant get this to work.