{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/vsts-rest-api-specs/issues/69","repository_url":"https://api.github.com/repos/MicrosoftDocs/vsts-rest-api-specs","labels_url":"https://api.github.com/repos/MicrosoftDocs/vsts-rest-api-specs/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/vsts-rest-api-specs/issues/69/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/vsts-rest-api-specs/issues/69/events","html_url":"https://github.com/MicrosoftDocs/vsts-rest-api-specs/issues/69","id":343960268,"node_id":"MDU6SXNzdWUzNDM5NjAyNjg=","number":69,"title":"Extension Management | Installed Extensions - Bug in REST API Endpoint parameters","user":{"login":"ChendrayanV","id":13730675,"node_id":"MDQ6VXNlcjEzNzMwNjc1","avatar_url":"https://avatars0.githubusercontent.com/u/13730675?v=4","gravatar_id":"","url":"https://api.github.com/users/ChendrayanV","html_url":"https://github.com/ChendrayanV","followers_url":"https://api.github.com/users/ChendrayanV/followers","following_url":"https://api.github.com/users/ChendrayanV/following{/other_user}","gists_url":"https://api.github.com/users/ChendrayanV/gists{/gist_id}","starred_url":"https://api.github.com/users/ChendrayanV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChendrayanV/subscriptions","organizations_url":"https://api.github.com/users/ChendrayanV/orgs","repos_url":"https://api.github.com/users/ChendrayanV/repos","events_url":"https://api.github.com/users/ChendrayanV/events{/privacy}","received_events_url":"https://api.github.com/users/ChendrayanV/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-24T09:39:09Z","updated_at":"2018-07-27T18:10:19Z","closed_at":"2018-07-27T18:10:19Z","author_association":"NONE","body":"As per the [documentation](https://docs.microsoft.com/en-us/rest/api/vsts/extensionmanagement/installed%20extensions/get?view=vsts-rest-4.1) \r\n\r\n```PowerShell\r\nPOST https://{accountName}.extmgmt.visualstudio.com/_apis/extensionmanagement/installedextensionsbyname/{**publisherName**}/{**extensionName**}/{version}?api-version=5.0-preview.1\r\n```\r\npublisherName and extensionName are incorrect - It should be respective ID's like **publisherId** and **extensionId**. \r\n\r\nWorking Code is illustrated below \r\n\r\n```PowerShell\r\n# REPLACE WITH YOUR PAT (PERSONAL ACCESS TOKEN)\r\n$Token = \"PERSONAL ACCESS TOKEN\"\r\n\r\n# REPLACE WITH ACCOUNT NAME (accountName)\r\n$accountName = \"ACCOUNT NAME\"\r\n\r\n# REPLACE WITH PUBLISHER ID\r\n$publisherId = \"PUBLISHER ID\"\r\n\r\n# REPLACE WITH EXTENSION ID\r\n$extensionId = \"EXTENSION ID\"\r\n\r\n$Authentication = [Text.Encoding]::ASCII.GetBytes(\":$Token\")\r\n$Authentication = [System.Convert]::ToBase64String($Authentication)\r\n$Headers = @{\r\n    Authorization = (\"Basic {0}\" -f $Authentication)\r\n}\r\n$Uri = \"https://$accountName.extmgmt.visualstudio.com/_apis/extensionmanagement/installedextensionsbyname/$publisherId/$($extensionId)?api-version=4.1-preview.1\"\r\n$Result = Invoke-RestMethod -Method Get -Uri $Uri -Headers $Headers -ContentType 'application/json'\r\n$Result\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/vsts-rest-api-specs/issues/comments/408497318","html_url":"https://github.com/MicrosoftDocs/vsts-rest-api-specs/issues/69#issuecomment-408497318","issue_url":"https://api.github.com/repos/MicrosoftDocs/vsts-rest-api-specs/issues/69","id":408497318,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODQ5NzMxOA==","user":{"login":"wnjenkin","id":27973111,"node_id":"MDQ6VXNlcjI3OTczMTEx","avatar_url":"https://avatars1.githubusercontent.com/u/27973111?v=4","gravatar_id":"","url":"https://api.github.com/users/wnjenkin","html_url":"https://github.com/wnjenkin","followers_url":"https://api.github.com/users/wnjenkin/followers","following_url":"https://api.github.com/users/wnjenkin/following{/other_user}","gists_url":"https://api.github.com/users/wnjenkin/gists{/gist_id}","starred_url":"https://api.github.com/users/wnjenkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wnjenkin/subscriptions","organizations_url":"https://api.github.com/users/wnjenkin/orgs","repos_url":"https://api.github.com/users/wnjenkin/repos","events_url":"https://api.github.com/users/wnjenkin/events{/privacy}","received_events_url":"https://api.github.com/users/wnjenkin/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T18:10:19Z","updated_at":"2018-07-27T18:10:19Z","author_association":"COLLABORATOR","body":"Closing this issue since it is being tracked with issue #50 "}}
{"actor":{"display_login":"wnjenkin"}}