Start the creation of a private GitHub App from a manifest. The browser posts the manifest to action_url.
POST
/admin/github/app
const url = 'https://example.com/api/v1/admin/github/app';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"org":"example","api_url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/admin/github/app \ --header 'Content-Type: application/json' \ --data '{ "org": "example", "api_url": "example" }'Request Body
Section titled “Request Body”Media typeapplication/json
object
org
The org that owns the App. Empty makes it on the admin’s personal account.
string
api_url
The GitHub API. The default is https://api.github.com. GitHub Enterprise Server uses https://
string
Examplegenerated
{ "org": "example", "api_url": "example"}Responses
Section titled “ Responses ”Where to post the manifest.
Media typeapplication/json
object
action_url
required
string
manifest
required
The manifest as JSON text, for the form field named manifest.
string
Examplegenerated
{ "action_url": "example", "manifest": "example"}default
Section titled “default”An error.
Media typeapplication/problem+json
RFC 9457 problem details with a stable code.
object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required
A stable machine-readable error code.
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}