Hello @roger78,
By:
Do you mean you'd like to set up access control and moderation using the API as opposed to setting it up in KMC? If so, then you need to use the accessControlProfile API
And then you can set accessControlId on the media object for the entries you want that access control profile to apply to.
Thanks,