mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Add Next Audit Date to New-SnipeItAudit.ps1
This commit is contained in:
parent
7ac8a5c9bd
commit
68ae039013
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,
|
||||
|
||||
|
|
@ -45,6 +48,10 @@ function New-SnipeitAudit() {
|
|||
if ($PSBoundParameters.ContainsKey('tag')) {
|
||||
$Values += @{"asset_tag" = $tag}
|
||||
}
|
||||
|
||||
if ($PSBoundParameters.ContainsKey('nextAudit')) {
|
||||
$Values += @{"next_audit_date" = $nextAudit}
|
||||
}
|
||||
|
||||
$Parameters = @{
|
||||
Api = "/api/v1/hardware/audit"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue