Response
Get all authorized SSH keys
Response
200 application/json
Response
Add an authorized SSH key
Note: The request body for this operation must be submitted as application/x-www-form-urlencoded
data. You can submit a parameter value as a string, or you can use a tool such as curl
to submit a parameter value as the contents of a text file. For more information, see the curl
documentation.
Body
application/x-www-form-urlencoded
Body
The public SSH key.
Response
201 application/json
Response
Response
Body
Remove an authorized SSH key
Note: The request body for this operation must be submitted as application/x-www-form-urlencoded
data. You can submit a parameter value as a string, or you can use a tool such as curl
to submit a parameter value as the contents of a text file. For more information, see the curl
documentation.
Body
application/x-www-form-urlencoded
Body
The public SSH key.
Response
200 application/json
Response
Response
Body
Create a GitHub license
When you boot a GitHub instance for the first time, you can use the following endpoint to upload a license.
Note that you need to POST
to /setup/api/configure
to start the actual configuration process.
When using this endpoint, your GitHub instance must have a password set. This can be accomplished two ways:
- If you’re working directly with the API before accessing the web interface, you must pass in the password parameter to set your password.
- If you set up your instance via the web interface before accessing the API, your calls to this endpoint do not need the password parameter.
Note: The request body for this operation must be submitted as application/x-www-form-urlencoded
data. You can submit a parameter value as a string, or you can use a tool such as curl
to submit a parameter value as the contents of a text file. For more information, see the curl
documentation.
Body
application/x-www-form-urlencoded
Body
The content of your .ghl license file.
You must provide a password only if you are uploading your license for the first time. If you previously set a password through the web interface, you don’t need this parameter.
An optional JSON string containing the installation settings. For a list of the available settings, see the Get settings endpoint.
Response
202
Response
Response
Body
Upgrade a license
This API upgrades your license and also triggers the configuration process.
Note: The request body for this operation must be submitted as application/x-www-form-urlencoded
data. You can submit a parameter value as a string, or you can use a tool such as curl
to submit a parameter value as the contents of a text file. For more information, see the curl
documentation.
Body
application/x-www-form-urlencoded
Body
The content of your new .ghl license file.
Response
202
Response
Response