ArtisanByteCrafter/KaceSMA

Failure to post new asset

jhulbe opened this issue · 3 comments

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.

Thanks! Looks like a regression with a code refactor. I'll get it updated.

Fixed - please update your module:

Update-Module KaceSMA

Thanks!