Pagination error with

BARR James (CERT-EU) 0 Reputation points

When using pagination with the TI REST API: using the @odata.nextLink field I get an error. The @odata.nextLink field of a response contains$skip=600 which gives the following error: {'error': {'code': '', 'message': '$skip=600 cannot exceed 500', 'innerError': {'date': '2023-04-14T12:16:33', 'request-id': '6be10972-970a-4699-96cb-f31812beb627', 'client-request-id': '6be10972-970a-4699-96cb-f31812beb627'}}} It works fine with one tenant but not with another and the two tenants seem to do pagination differently, one uses skip and the other uses skipToken

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,773 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,290 Reputation points

    Hi BARR James (CERT-EU) Thanks for reaching out. Since the Beta version is still in preview the limits and functionality are subject to change and can vary across tenants. Per article 'If you need to use $skip, it has a limit of 500 alerts. For example, /security/alerts?$top=10&$skip=500 will return a 200 OK response code, but /security/alerts?$top=10&$skip=501 will return a 400 Bad Request response code.' Additionally please refer to article for skip and skiptoken query parameters. You are welcome to provide your feedback and suggestion via the link below: Thanks.

    0 comments No comments