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