Public/MIA/Set-MIATask.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
function Set-MIATask
{
    [CmdletBinding()]
    param (
        [Parameter(Mandatory)]
        [string]$TaskId,
        [Parameter(Mandatory)]
        [psobject]$Task
    )

    $response = Invoke-MIARequest -Method 'Put' -Resource "tasks/$TaskId" -Body $Task
    Write-MIAOutput -Response $response -Typename 'MIREST.MIATask'
}