SharePoint REST API 2.0 Redirecting to the exact same endpoint url - Get File Content

Victor Melo 0 Reputation points
2025-01-23T23:43:46.85+00:00

I am clueless about this!
Was trying to Get File Content by using SharePoint REST API 2.0 - Send An HTTP Request to SharePoint action using method GET, endpoint:
/_api/v2.0/sites/{site-id}/drives/{drive-id}/items/{item-id}/content

Result is failing the online flow with a Redirect error with "source" with exact same of the endpoint queried. response bellow:

{
    "status": 302,
    "message": "",
    "source": "https://{tanant}.sharepoint.com/sites/{site}/_api/v2.0/sites/{site-id}/drives/{drive-id}/items/{item-id}/content",
    "errors": []
}

Iknow the file is there because i can use teh exact same ids in other endpoints and it finds the file there. I am totally clueless about this...

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,230 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.