0
votes

GET /sites/{site-id}/pages

https://graph.microsoft.com/beta/sites/{my-site-id}/pages stopped working for me end of last week. I am getting the following error

{ "error": { "code": "invalidRequest", "message": "One of the provided arguments is not acceptable.", "innerError": { "code": "badArgument", "request-id": "f292e4b5-a4a4-43f6-8e5b-20979eeddb0c", "date": "2020-04-22T12:09:30" } } }

I am certain my request is correct since it worked perfectly fine before. The current version of the doku (https://docs.microsoft.com/en-us/graph/api/sitepage-list?view=graph-rest-beta) also agrees that I am using the correct route.

Does anyone have any idea what's going on with this beta feature?

1

1 Answers

0
votes

Specifying the site-id using the "{hostname},{spsite-id},{spweb-id}" syntax is successful for me.

Ex. https://graph.microsoft.com/beta/sites/{hostnameRemoved},646dd80e-8889-43c2-8575-efc2208458b6,6ca05f4b-d2e7-41bc-98be-4792b9bd6c55/pages

Specifying the site-id using the "{hostname}:{serverRelativePath}" syntax is throwing an error for me though.

Ex. https://graph.microsoft.com/beta/sites/{hostnameRemoved}:/sites/{siteNameRemoved}:/pages

{ "error": { "code": "invalidRequest", "message": "Provided identifier is malformed - site collection id is not valid", "innerError": { "request-id": "2474838b-1c5a-4155-bdfb-ff9778fc42e6", "date": "2020-04-25T01:44:31" } } }