corrected examples

This commit is contained in:
Petri Asikainen 2021-06-10 19:02:16 +03:00
parent 6ef20bd333
commit dbef8c5a26
5 changed files with 10 additions and 9 deletions

View file

@ -61,7 +61,7 @@ New-SnipeitAsset -status_id 1 -model_id 1 -name "Machine1" -asset_tag "DEV123"
Specifying asset tag when creating asset
.EXAMPLE
New-SnipeitAsset -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5" = "Windows 10 Pro" }
New-SnipeitAsset -status_id 1 -model_id 1 -name "Machine1" -customfields = @{ "_snipeit_os_5" = "Windows 10 Pro" }
Using customfields when creating asset.
#>
@ -120,6 +120,7 @@ function New-SnipeitAsset()
[parameter(mandatory = $true)]
[string]$apiKey,
[Alias('CustomValues')]
[hashtable] $customfields
)

View file

@ -69,7 +69,7 @@
Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1"
.EXAMPLE
Set-SnipeitAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" }
Set-SnipeitAsset -id 1 -name "Machine1" -customfields = @{ "_snipeit_os_5" = "Windows 10 Pro" ; "_snipeit_os_version" = "1909" }
.EXAMPLE
Get-SnipeitAsset -serial 12345678 | Set-SnipeitAsset -notes 'Just updated'
@ -101,7 +101,6 @@ function Set-SnipeitAsset()
[string]$serial,
[string]$order_number,
[int]$warranty_months,
@ -127,6 +126,7 @@ function Set-SnipeitAsset()
[parameter(mandatory = $true)]
[string]$apiKey,
[Alias('CustomValues')]
[hashtable] $customfields
)
begin{

View file

@ -97,7 +97,7 @@ Use internal field names from snipeit .You can use Get-CustomField to get intern
```yaml
Type: Hashtable
Parameter Sets: (All)
Aliases:
Aliases: CustomValues
Required: False
Position: 16

View file

@ -110,7 +110,7 @@ Hastable of custom fields and extra fields that need passing through to Snipeit
```yaml
Type: Hashtable
Parameter Sets: (All)
Aliases:
Aliases: CustomValues
Required: False
Position: 20

View file

@ -13,7 +13,7 @@ Set license seat or checkout license seat
## SYNTAX
```
Set-SnipeitLicenseSeat [-id] <Int32[]> [-seat_id] <Int32> [[-assigned_id] <Int32>] [[-asset_id] <Int32>]
Set-SnipeitLicenseSeat [-id] <Int32[]> [-seat_id] <Int32> [[-assigned_to] <Int32>] [[-asset_id] <Int32>]
[[-note] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
```
@ -66,13 +66,13 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -assigned_id
{{ Fill assigned_id Description }}
### -assigned_to
Id of target user
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:
Aliases: assigned_id
Required: False
Position: 3