soc/api/v1/workloads/New-Workload.ps1

function New-Workload
{
    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory)]
        [string] $AppAlias,
        [Parameter(Mandatory)]
        [string] $VersionAlias,
        [Parameter(Mandatory)]
        [string] $ComponentAlias,
        [Parameter(Mandatory)]
        [string] $NodeName
    )

    if ($PSCmdlet.ShouldProcess($ComponentAlias))
    {
        return Invoke-Api Post "/soc/api/v1/applications/$AppAlias/versions/$VersionAlias/components/$ComponentAlias/workloads" -JsonBody @{
            "nodeName" = $NodeName
        }
    }
}