Pax8API/Public/Webhooks/Set-Pax8Status.ps1
|
<#
.SYNOPSIS Update webhook status .DESCRIPTION Update a webhook's active status OpenAPI: POST /webhooks/{id}/status Scope: Webhooks. Audience: https://api.pax8.com. .PARAMETER Id path parameter 'id'. .PARAMETER Active Whether the webhook should be active .PARAMETER Body Raw request body. This can be a hashtable, PSCustomObject, or pre-built JSON string. .EXAMPLE Set-Pax8Status -Id '00000000-0000-0000-0000-000000000000' .LINK https://devx.pax8.com/openapi/webhooks-api.json #> function Set-Pax8Status { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [guid]$Id, [Parameter(Mandatory = $true)] [bool]$Active, [Parameter(ValueFromPipeline = $true)] [object]$Body, [switch]$Raw ) process { $boundParameters = @{} foreach ($entry in $PSBoundParameters.GetEnumerator()) { $boundParameters[$entry.Key] = $entry.Value } Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters } } |