The App Volumes API is just not public for 4.x yet. You can see the API endpoints by using browser developer tools. This will show you how to automate creation of an Assignment. Create a new assignment in the UI and watch the developer tools. This API is not supported, but this would be a way to automate the assignments. That is how I built the entitlement sync Fling.