Hello,I am currently facing an issue using the Microsoft Graph API to move a SharePoint file from one folder to another via Make (formerly Integromat)
Issue Details:
- Primary Issue:
- When sending a PATCH
request to the following endpoint:
[https://graph.microsoft.com/v1.0/drives/b!RVgGByPwgEmkQUmDLMHRwyX_hDxbJvtGgO11BwNy9DJkcT7CHGvDTYdKQeXOXIoo/items/01YHHNUBZWA5532ISFLBA244NDKEESNJ6I](https://graph.microsoft.com/v1.0/drives/b!RVgGByPwgEmkQUmDLMHRwyX_hDxbJvtGgO11BwNy9DJkcT7CHGvDTYdKQeXOXIoo/items/01YHHNUBZWA5532ISFLBA244NDKEESNJ6I)
- I receive the following error response:
```json
{
"error": {
"code": "BadRequest",
"message": "Empty Payload. JSON content expected.",
"innerError": {
"date": "2025-01-21T15:02:40",
"request-id": "d9d1fc2d-e30b-4c9c-adca-1432ad36ad9c",
"client-request-id": "d9d1fc2d-e30b-4c9c-adca-1432ad36ad9c"
}
}
}
```
- Steps Taken:
- I have confirmed that the Make module has the necessary permissions to perform file operations.
- I have manually obtained a Graph API Bearer token and attempted the same request using a standard HTTP module in Make.
- Despite granting admin consent in Azure Portal and assigning necessary app permissions, I still receive the following error when using the HTTP module:
```json
{
"error": {
"code": "AccessDenied",
"message": "Either scp or roles claim need to be present in the token.",
"innerError": {
"date": "2025-01-21T16:43:28",
"request-id": "3d18667b-05bb-4c97-b91a-070586c439a0",
"client-request-id": "3d18667b-05bb-4c97-b91a-070586c439a0"
}
}
}
```
- What I Have Tried So Far:
- Verified and granted the necessary permissions (Files.ReadWrite
, Sites.ReadWrite.All
) in Azure Portal.
- Ensured that the token contains the required scopes but still facing the issue.
- Followed the official documentation for moving files:
[Move File via Graph API]
[Access Token Guide]
Could you please assist me in identifying what might be causing this issue? Specifically, I need guidance on:
- Ensuring the token contains the correct scp
or roles
claims.
- Troubleshooting the "Empty Payload" error despite passing a valid JSON body.
- Any specific configurations required in Azure to enable file moving operations via Make.
Thank you for your support.
Best,
Monica