diff --git a/Octokit.Tests/Clients/GitHubAppsClientTests.cs b/Octokit.Tests/Clients/GitHubAppsClientTests.cs index 201a32de3d..e96166d48f 100644 --- a/Octokit.Tests/Clients/GitHubAppsClientTests.cs +++ b/Octokit.Tests/Clients/GitHubAppsClientTests.cs @@ -98,7 +98,7 @@ public void PostsToCorrectUrl() client.CreateInstallationToken(fakeInstallationId); - connection.Received().Post(Arg.Is(u => u.ToString() == "installations/3141/access_tokens"), string.Empty, "application/vnd.github.machine-man-preview+json"); + connection.Received().Post(Arg.Is(u => u.ToString() == "app/installations/3141/access_tokens"), string.Empty, "application/vnd.github.machine-man-preview+json"); } } } diff --git a/Octokit/Helpers/ApiUrls.cs b/Octokit/Helpers/ApiUrls.cs index c7c8d3179b..9fe5dd7c15 100644 --- a/Octokit/Helpers/ApiUrls.cs +++ b/Octokit/Helpers/ApiUrls.cs @@ -287,7 +287,7 @@ public static Uri NotificationSubscription(int id) /// The Id of the GitHub App installation. public static Uri AccessTokens(long installationId) { - return "installations/{0}/access_tokens".FormatUri(installationId); + return "app/installations/{0}/access_tokens".FormatUri(installationId); } ///