Public/Set-Category.ps1

<#
    .DESCRIPTION
    Wrapper for Nutanix API version 0.3.
 
    .NOTES
    Author: Timothy Rasiah
#>


function Set-Category {
    [CmdletBinding()]
    param (
        $category
    )
    
    $name = $category.name
    $data = $category

    $response = Send-Request -method "PUT" -endpoint "/categories/$($name)" -data $data
    return $response
}