pre_receive_hook_id parameter
Update a pre-receive hook
Path Parameters
Body
application/json
Body
The name of the hook.
The script that the hook runs.
The GitHub repository where the script is kept.
The pre-receive environment where the script is executed.
The state of enforcement for this hook.
Whether enforcement can be overridden at the org or repo level.
Response
200 application/json
Response
Response
pre-receive-hook
Show Child Parameters
Show Child Parameters
Path Parameters
Body
Delete a pre-receive hook
Path Parameters
pre_receive_hook_id parameter
Response
204
Response
Response
Path Parameters
List personal access tokens
Lists personal access tokens for all users, including admin users.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
200 application/json
Response
Response
The authorization for an OAuth app, GitHub App, or a Personal Access Token.
A list of scopes that this authorization is in.
Show Child Parameters
Simple User
Show Child Parameters
Show Child Parameters
Query Parameters
Delete a personal access token
Deletes a personal access token. Returns a 403 - Forbidden
status when a personal access token is in use. For example, if you access this endpoint with the same personal access token that you are trying to delete, you will receive this error.
Path Parameters
Response
204
Response
Response
Path Parameters
Create a user
If an external authentication mechanism is used, the login name should match the login name in the external system. If you are using LDAP authentication, you should also update the LDAP mapping for the user.
The login name will be normalized to only contain alphanumeric characters or single hyphens. For example, if you send "octo_cat"
as the login, a user named "octo-cat"
will be created.
If the login name or email address is already associated with an account, the server will return a 422
response.
Body
application/json
Body
The user’s username.
Required for built-in authentication. The user’s email address. This parameter can be omitted when using CAS, LDAP, or SAML. For details on built-in and centrally-managed authentication, see the the GitHub authentication guide.
Response
201 application/json
Response
Response
Simple User
Simple User
Example:octocat
Example:1
Example:MDQ6VXNlcjE=
Example:https://github.com/images/error/octocat_happy.gif
Example:41d064eb2195891e12d0413f63227ea7
Example:https://api.github.com/users/octocat
Example:https://github.com/octocat
Example:https://api.github.com/users/octocat/followers
Example:https://api.github.com/users/octocat/following{/other_user}
Example:https://api.github.com/users/octocat/gists{/gist_id}
Example:https://api.github.com/users/octocat/starred{/owner}{/repo}
Example:https://api.github.com/users/octocat/subscriptions
Example:https://api.github.com/users/octocat/orgs
Example:https://api.github.com/users/octocat/repos
Example:https://api.github.com/users/octocat/events{/privacy}
Example:https://api.github.com/users/octocat/received_events
Example:User
Example:"2020-07-09T00:17:55Z"