diff --git a/src/Network/GitHub/API.hs b/src/Network/GitHub/API.hs index 95c69d3..7652fb1 100644 --- a/src/Network/GitHub/API.hs +++ b/src/Network/GitHub/API.hs @@ -93,7 +93,7 @@ type GetIssues :> QueryParam "since" String :> Get '[JSON] [Issue] -type ReqInstallationAccessToken = "installations" :> Capture "installation_id" Int :> "access_tokens" +type ReqInstallationAccessToken = "app" :> "installations" :> Capture "installation_id" Int :> "access_tokens" :> Header "User-Agent" String :> Header "Authorization" String :> ReqBody '[JSON] (Maybe InstallationUser)