Hi
Need help debugging an api request. I'm making a post call to share a drive item but getting an invalid request error
url = "https://graph.microsoft.com/v1.0/users/f10dae52-c9e0-48f7-96fa-a3ae55c129fa/drive/items/01VTH4TKZN2OBTDYxxxxxxxxxxNBJCYQI/invite"
payload={ "recipients": [ { "email": "abc@xyz.onmicrosoft.com" } ], "message": "Here's the file that we're collaborating on.", "requireSignIn": True, "sendInvitation": True, "roles": [ "write" ]}
response
{'error': {'code': 'invalidRequest', 'message': 'Invalid request', 'innerError': {'date': '2023-09-21T04:16:38', 'request-id': '9e8b7396-684f-4e92-b7fc-6c37ffb5f0bb', 'client-request-id': '9e8b7396-684f-4e92-b7fc-6c37ffb5f0bb'}}}