Hello @JanCreupelandt - I realize that this post is aged but this is supported via the REST API now.
Project—ArcGIS REST APIs | ArcGIS Developers
Sign in to post, follow content, and more. New here? Register for free.