I am trying to get e list of all my task lists in the microsoft to-do app over the microsoft graph api v1.0 using python.
I was able to establish e connection to the graph api and query some user data, meaning that authentication should not be the issue.
However, I get a 404 error:
MainError(additional_data={}, code='itemNotFound', details=None, inner_error=InnerError(additional_data={'code': 'MailboxNotEnabledForRESTAPI', 'date': DateTime(2024, 1, 10, 6, 25, 7, tzinfo=Timezone('UTC'))}, client_request_id='246435eb-2520-48f7-a4a5-691f8b050132', date=None, odata_type=None, request_id='f43b76c7-dd96-4418-bd1a-4587334f148d'), message='Item not found', target=None)I tried to get the lists with the following code:
await self.app_client.users.by_user_id(user-id).todo.lists.get()Where user-id is my user ID. The user ID should be correct, since I was able to retrieve user information with this user ID.