A 'settings_error/not_authorized' error from the sharing_create_shared_link_with_settings method indicates that you cannot set the requested settings for a shared link from the connected account. For example, if you have a Basic account, you would not be able to set an expiration on a shared link. You can find more information on the errors in the documentation.For access to other settings like this, you can upgrade your plan. You can find a comparison of the available plans here.