snazy2000 / SnipeitPS

Powershell API Wrapper for Snipe-it
MIT License
181 stars 47 forks source link

Support for checkin of assets #217

Closed miicah closed 3 years ago

miicah commented 3 years ago

Context

While it's possible to check out an asset using a cmdlet, there currently isn't one that can check an asset back in.

Expected Behavior

If you can check a device out you should be able to check it back in.

Current Behavior

There is not cmdlet to check a device back in even though the SnipeIT API exposes a route to do so

Possible Solution

I have written a new cmdlet, but didn't know how to do a pull request without an open issue.

PetriAsi commented 3 years ago

Please check Reset-SnipeItAssetOwner.

Yes, its odd name for the command, as checkout or checkin does no really change owner, only assing it to someone.