mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-15 18:55:47 +00:00
Add Next Audit Date to New-SnipeItAudit.ps1
This commit is contained in:
parent
9e014ad06b
commit
9df1123ff5
1 changed files with 7 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ function New-SnipeitAudit() {
|
|||
|
||||
[int]$location_id,
|
||||
|
||||
[parameter(mandatory = $false)]
|
||||
[string]$nextAudit,
|
||||
|
||||
[parameter(mandatory = $false)]
|
||||
[string]$url,
|
||||
|
||||
|
|
@ -46,6 +49,10 @@ function New-SnipeitAudit() {
|
|||
$Values += @{"asset_tag" = $tag}
|
||||
}
|
||||
|
||||
if ($PSBoundParameters.ContainsKey('nextAudit')) {
|
||||
$Values += @{"next_audit_date" = $nextAudit}
|
||||
}
|
||||
|
||||
$Parameters = @{
|
||||
Api = "/api/v1/hardware/audit"
|
||||
Method = 'Post'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue