Hi all,
I need to get the ID of a drive (library) of my SPO site.
I saw that there are new API to are expected to provide it.
I called it first directly from the browser
https://xxxxxx.sharepoint.com/sites/xxx/_api/v2.0/drives
And it returned what I was expected
Now trying it with the SPO connector "Send an HTTP request to SharePoint", I got the error "Unexpected response from the service"
I get the same issue calling for _api/v2.0/lists
But it works calling _api/web/lists and _api/web/drives is not found
Can anyone tell me how to fix the issue?
Thanks in advance
Thanks Expiscornovus
It works fine now !
Hi @PowerFred,
Can you add some headers to the GET request? Let me know if that works for you.
{
"Content-Type": "application/json",
"Accept": "application/json"
}