Create share linkpost https://{server}/api/v2.1/share-links/Create a shared link for the library with specific permissions.