2018-07-20 22:03
浏览 64

使用Microsoft Graph API创建文件夹是不可接受的

I am using Microsoft Graph Library for PHP (microsoftgraph/msgraph-sdk-php) to save documents in Onedrive for Business.

I am having issues to create items (folders or upload files) using Microsoft Graph API, for instance, when I am creating folders I am getting:

"Client error: `POST` resulted in a `400 Bad Request` response: { "error": { "code": "invalidRequest", "message": "One of the provided arguments is not acceptable.", "innerError": { "request-id": "bec1d260-3efd-4417-ba80-96ec37078df6", "date": "2018-07-20T16:48:34" } } } " 




This is the code I am executing:


My guess is that the API is expecting something different than I am sending, I have tried to change the body, for instance:


but I am still getting the same error.

I am not sure what I am doing wrong

Any ideas?

Thanks in advance for your help

1条回答 默认 最新

相关推荐 更多相似问题