diff --git a/CHANGELOG.md b/CHANGELOG.md index 94ed140a..98f63879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ Merged [Pull Request](https://github.com/DarqueWarrior/vsteam/pull/414) from [Guillermo Diaz](https://github.com/gm0d) which included the following: - Added Get-VSTeamWiki, Add-VSTeamWiki, Remove-VSTeamWiki, for interacting with Wikis + +Merged [Pull Request](https://github.com/DarqueWarrior/vsteam/pull/430) from [thahif Diaz](https://github.com/thahif) which included the following: + +- Updated Update-VSTeamUserEntitlement to correctly use contentype application/json-patch+json ## 7.4.0 diff --git a/Source/Public/Update-VSTeamUserEntitlement.ps1 b/Source/Public/Update-VSTeamUserEntitlement.ps1 index 25ee5ac7..d3b0aaa2 100644 --- a/Source/Public/Update-VSTeamUserEntitlement.ps1 +++ b/Source/Public/Update-VSTeamUserEntitlement.ps1 @@ -1,4 +1,4 @@ -function Update-VSTeamUserEntitlement { +function Update-VSTeamUserEntitlement { [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = "High", DefaultParameterSetName = 'ByEmail', HelpUri = 'https://methodsandpractices.github.io/vsteam-docs/docs/modules/vsteam/commands/Update-VSTeamUserEntitlement')] param ( @@ -74,7 +74,7 @@ function Update-VSTeamUserEntitlement { _callAPI -Method PATCH -SubDomain vsaex -NoProject ` -Resource userentitlements ` -Id $id ` - -ContentType 'application/json-patch+; charset=utf-8' ` + -ContentType 'application/json-patch+json; charset=utf-8' ` -Body $body ` -Version $(_getApiVersion MemberEntitlementManagement) | Out-Null @@ -83,4 +83,4 @@ function Update-VSTeamUserEntitlement { Write-Information "Updated user license for $( $user.userName ) ($( $user.email )) from MSDNLicenseType: ($msdnLicenseTypeOriginal) to ($newMSDNLicenseType)" } } -} \ No newline at end of file +}