Public/New-DTXEntry.ps1
Function New-DTXEntry { param( # Parameter help description [Parameter()] [String] $ProjectCode, # Parameter help description [Parameter(Mandatory)] [String] $Month, # Parameter help description [Parameter(Mandatory)] [String[]] $DayEntry ) $Uri = "/project?project=$ProjectCode&month=$Month&" + ($DayEntry -join "&") $Splat = @{ Uri = $Uri Method = "POST" ContentType = "application/x-www-form-urlencoded" } try{ $null = Invoke-DTXAPI @Splat $true }catch{ $false } } |