Hello Julien Marpault,
Thank you for reaching out to Microsoft Support!
According to the query, in the Graph Api related documentation, there is currently no update function to convert user mailbox to shared mailbox, please see the documentation for details:
You can propose this feature here.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.