A Microsoft file hosting and synchronization service.
Hi Rini,
Thank you for posting in this community.
I have gone through the article you shared, however, I am sorry that I am not knowledgeable about API and Python. And it is out of the support boundaries of our community.
Considering that your question is related to OneDrive API. To avoid sharing any incorrect information, I would recommend you raise a new thread in Microsoft Q&A community for a better help. The members there are good at this aspect. You will get a more detailed and professional answer to your query there.
Moreover, to narrow down whether this issue is related to the permissions, you may make sure that the file is shared with the permission “Every with the link can edit”.
Thank you for your understanding and efforts.
Best Regards,
May