/build/static/layout/Breadcrumb_cap_w.png

API offset operator is not working (7.1)

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.

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: JasonEgg 6 years ago
Red Belt
1

Top Answer

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".

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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