Public/Opportunities/New-AspireOpportunity.ps1
|
<#
.SYNOPSIS Creates a new opportunity in the Aspire API. .DESCRIPTION Uses Invoke-AspireRequest to perform a POST request to the /Opportunities endpoint. .PARAMETER Body The request body as a hashtable containing the opportunity details (required). .OUTPUTS The response from the API. .EXAMPLE $body = @{ # Add example body based on schema } New-AspireOpportunity -Body $body #> function New-AspireOpportunity { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [hashtable]$Body ) return Invoke-AspireRequest -Method POST -Path "/Opportunities" -Body $Body -ApiVersion $null } |