none
Graph API - Use Access Token to Upload file RRS feed

  • Question

  • Hi

    I am unable to upload a file using a valid access token (the token allows me to list groups, drive items etc.). The error that appears is:

    "invalidRequest: One of the provided arguments is not acceptable."

    Using the following PUT request:

    https://graph.microsoft.com/v1.0/groups/{my group id}/drive/items/{my item(folder) id}:/test.txt:/content

    using content type: text/plain

    I tested this exact same request using the graph explorer https://developer.microsoft.com/en-us/graph/graph-explorer and my office 365 user account and the upload worked, so I though it might be an app permissions thing, however this did not work even after granting absolutely every permission to the app and regenerating the access tokem.

    Please help as I would rather use an access token than my user account to perform the uploads.

    Thankyou

    Oliver

    Tuesday, October 30, 2018 2:05 AM

Answers