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:{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 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.



    Tuesday, October 30, 2018 2:05 AM