developer/api/v1/components/Update-Component.ps1
function Update-Component { [CmdletBinding(SupportsShouldProcess)] param( [Parameter(Mandatory)] [string] $AppAlias, [Parameter(Mandatory)] [string] $VersionAlias, [Parameter(Mandatory)] [object] $Component ) if ($PSCmdlet.ShouldProcess($Component)) { return Invoke-Api Put "/developer/api/v1/components/$AppAlias/$VersionAlias/$($Component.alias)" -JsonBody $Component } } |