How to make a category read only via the API?

We want to make a category/sub-category read only via API so that no more posts can be made in that category. Please suggest how to do that.


Use an API key for a user who only has the right to see posts in said category?

I was able to use security settings for a category and setting permissions for ‘everyone’ to ‘see’.