/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


API offset operator is not working (7.1)

06/13/2018 558 views
Just wondering if anyone has had issues using the offset parameter when calling...eg:  ".../inventory/machines?offset 10" OR ".../inventory/machines?offset 10 limit 5" - it seems to ignores the offset and always returns me the same machine.

I have other operators working - like shaping/sorting. The offset is not being respected.

If it matters, I'm writing this with PowerShell.

Thanks.
Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

1
I think the examples are wrong in the API Reference Guide. I was able to get offset to work by setting it in the paging param: ".../api/inventory/machines?paging=offset 10" 

In my tests, I also noticed that "limit" has to go BEFORE "offset" in the paging param: ".../api/inventory/machines?paging=limit 1 offset 10".
Answered 06/26/2018 by: JasonEgg
Red Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ