functions/Move-DrmmDeviceToSite.ps1
function Move-DrmmDeviceToSite { <# .SYNOPSIS Moves a device from one site to another site. .PARAMETER DeviceUid Provide device uid which of device you woul dlike to move. .PARAMETER SiteUid Provide site uid which will be use to move the device to. #> # Function Parameters Param ( [Parameter(Mandatory=$True)] $deviceUid, [Parameter(Mandatory=$True)] $siteUid ) # Declare Variables $apiMethod = 'PUT' # Reqeust device move return New-ApiRequest -apiMethod $apiMethod -apiRequest "/v2/device/$deviceUid/site/$siteUid" } |