mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Update Remove-Asset.ps1
This commit is contained in:
parent
7cbcd575f6
commit
621bab7d4e
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
Long description
|
Long description
|
||||||
.PARAMETER ID
|
.PARAMETER ID
|
||||||
Unique ID For Asset to be removed
|
Unique ID For Asset to be removed
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
Remove-Asset -ID 44 -url $url -apiKey $secret -Verbose
|
Remove-Asset -ID 44 -url $url -apiKey $secret -Verbose
|
||||||
#>
|
#>
|
||||||
|
|
@ -31,7 +30,7 @@ function Remove-Asset ()
|
||||||
"ID" = $Name
|
"ID" = $Name
|
||||||
}
|
}
|
||||||
|
|
||||||
$Body = $Values | ConvertTo-Json;
|
$Body = $Values | ConvertTo-Json
|
||||||
|
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/hardware/$ID"
|
Uri = "$url/api/v1/hardware/$ID"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue