Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving Warranty Dates using API #51

Open
vbfos opened this issue Dec 18, 2024 · 0 comments
Open

Retrieving Warranty Dates using API #51

vbfos opened this issue Dec 18, 2024 · 0 comments

Comments

@vbfos
Copy link

vbfos commented Dec 18, 2024

Mikey, I don't believe this is a limitation of your module, because I see the same when I query directly using an API URL, but I am hoping you may know the answer. If I query a device thus (https://eu-api.ninjarmm.com/v2/device/xxxx), or by using your module, the NinjaOne API documentation schema suggests that I should see the device warranty dates returned:
"warranty": {
"startDate": 0,
"endDate": 0
}
But I never seem to get that data returned, even though the Ninja web GUI does have the warranty dates for the device displayed.

EDIT: Thanks to LukeW @ Ninja I now know that ?expand=warranty on the end of the URL adds the warranty dates into the returned data. Maybe a Get-NinjaOneDeviceWarranty function might be the solution?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant