Failure to post new asset
jhulbe opened this issue · 3 comments
jhulbe commented
KaceSMA/private/New-ApiPOSTRequest.ps1
Line 74 in 7a01696
Invoke-restMehtod @IRMSplat is failing with a 500 Internal Server error when using New-SMAAsset
Kace appliance logs say "PUT /api/asset/assets HTTP/1.1" 500 86 1311 1055 0
Referencing API documentation the method for creating a new asset is a POST to /api/asset/assets. Changed the method of $IRMSplat to POST and it works successfully.
ArtisanByteCrafter commented
Thanks! Looks like a regression with a code refactor. I'll get it updated.
ArtisanByteCrafter commented
Fixed - please update your module:
Update-Module KaceSMA
jhulbe commented
Thanks!