0

I called the endpoint /shares/{shareId} using msgraph-sdk-php, but got response 400 as:

{
  "@odata.context":"https://graph.microsoft.com/v1.0/$metadata#shares/$entity",
  "id":"s!here-is-the-share-id",
  "[email protected]":"#String",
  "name":{ 
    "error": { 
      "code": "BadRequest",
      "message": "A primitive value was specified; however, a value of the non-primitive type '' was expected.", 
      "innerError": { 
        "request-id": "3ea56b1c-acd6-4fdf-a856-c46b35e01cb7", 
        "date": "2017-05-25T05:26:23"
      } 
    } 
  } 

(Yes, I even got 4 left brackets but only 3 right brackets.)

while I can get correct response via api.onedrive.com api with the same shareId. I really can't find any tips from documentation.

1 Answer 1

1

Thanks for letting us know about this @SevenOutman! This was a configuration issue that has now been resolved.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your quick response and efforts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.