-
Notifications
You must be signed in to change notification settings - Fork 24
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
Can't clear warranty using Set-DrmmDeviceWarranty #38
Comments
I would pass an empty string. Let me know if that works or not. |
Hi, have just tried this:
|
I meant to try $null or put a space in the string ;-) |
No problem - I've tried putting a space in the string, an empty string, $null and nothing and it all returns a 400. |
Can you raise a ticket with Datto support? Maybe we can't clear the warranty. As a workaround, you could put in a date you can exclude. |
I spoke to them yesterday - they advised me to use Postman to interact with the API and test, by setting the body of the POST request as:
it clears the warranty information. |
That's good it works with Postman. I will create a test machine and see why sending "null" does not work. |
I've gotten it working temporarily - https://github.com/JonathanBullerBP/DattoRMM/blob/master/functions/Set-DrmmDeviceWarranty.ps1 I put it on a separate switch to avoid data loss but this could also just work if the date value is set to null. |
Thank you, I'll add your code to the next release. |
We're trying to clear some incorrect warranty data, using the API you can pass "null" to the endpoint to clear the date. Using this module it doesn't work, just returning an error 400.
The text was updated successfully, but these errors were encountered: