Update the username for a user
Path Parameters
Body
application/json
Body
The user’s new username.
Response
202 application/json
Response
Response
Path Parameters
Body
Delete a user
Deleting a user will delete all their repositories, gists, applications, and personal settings. Suspending a user is often a better option.
You can delete any user account except your own.
Path Parameters
Response
204
Response
Response
Path Parameters
Create an impersonation OAuth token
Path Parameters
Body
application/json
Body
A list of scopes.
Response
201 application/json
Response
Response
Authorization
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
Path Parameters
Body
Delete an impersonation OAuth token
Path Parameters
Response
204
Response
Response
Path Parameters
Get the global announcement banner
Gets the current message and expiration date of the global announcement banner in your enterprise.
Response
200 application/json
Response
Response
Enterprise Announcement
Enterprise global announcement
The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see “Basic writing and formatting syntax.”
Example:Very **important** announcement about _nothing_.
The time at which the announcement expires. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
. To set an announcement that never expires, omit this parameter, set it to null
, or set it to an empty string.
Example:"2021-01-01T00:00:00.000-07:00"