Hello @Leonardo Saturno,
Thank you for reaching out to Microsoft Q&A forum!
To treat cases like PowerPoint API, first of all you can try this article:
Add and delete slides in PowerPoint - Office Add-ins | Microsoft Learn
If this does not solve your problem, please ask a new question using the Microsoft Graph Q&A.
Go to:
And ask your question again to get help.
Best regards,