PATCH
/applications/{client_id}/tokenReset a token
OAuth applications and GitHub applications with OAuth authorizations can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. Invalid tokens will return 404 NOT FOUND.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
client_idstringrequired
The client ID of the GitHub app.
access_tokenstringrequired
The access_token of the OAuth or GitHub application.
200Response
idintegerrequired
urlstringrequired
scopesarray<string>required
A list of scopes that this authorization is in.
tokenstringrequired
token_last_eightstringrequired
hashed_tokenstringrequired
appobjectrequired
notestringrequired
note_urlstringrequired
updated_atstringrequired
created_atstringrequired
fingerprintstringrequired
userobjectoptional
A GitHub user.
installationobjectoptional
expires_atstringrequired
422Validation failed, or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional
Error handling
A 422 is returned: Validation failed, or the endpoint has been spammed.