SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

Batch request api needs relative url and not just root url #7491

Open shsharm85 opened 3 years ago

shsharm85 commented 3 years ago

Hello, I wanted to point out that the article: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/make-batch-requests-with-the-rest-apis states below: The request URL consists of the root service URL and the $batch option; for example, https://fabrikam.sharepoint.com/_api/$batch or https://fabrikam.office365.com/api/v1.0/me/$batch.

However this needs to be updated from just a root service url to the relative url of the site eg: If the relative url has a list where in we are trying to do delete operation. In that scenario just using the root service url for the POST call will not work and the request url will instead look like this: "https://sharepoint.com/sites/test" given the list is under site "test"


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ghost commented 3 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.