PATCH
/userUpdate the authenticated user
Note: If your email is set to private and you send an email parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
namestringoptional
The new name of the user.
emailstringoptional
The publicly visible email address of the user.
blogstringoptional
The new blog URL of the user.
twitter_usernamestringoptional
The new Twitter username of the user.
companystringoptional
The new company of the user.
locationstringoptional
The new location of the user.
hireablebooleanoptional
The new hiring availability of the user.
biostringoptional
The new short biography of the user.
200Response
loginstringrequired
idintegerrequired
user_view_typestringoptional
node_idstringrequired
avatar_urlstringrequired
gravatar_idstringrequired
urlstringrequired
html_urlstringrequired
followers_urlstringrequired
following_urlstringrequired
gists_urlstringrequired
starred_urlstringrequired
subscriptions_urlstringrequired
organizations_urlstringrequired
repos_urlstringrequired
events_urlstringrequired
received_events_urlstringrequired
typestringrequired
site_adminbooleanrequired
namestringrequired
companystringrequired
blogstringrequired
locationstringrequired
emailstringrequired
notification_emailstringoptional
hireablebooleanrequired
biostringrequired
twitter_usernamestringoptional
public_reposintegerrequired
public_gistsintegerrequired
followersintegerrequired
followingintegerrequired
created_atstringrequired
updated_atstringrequired
private_gistsintegerrequired
total_private_reposintegerrequired
owned_private_reposintegerrequired
disk_usageintegerrequired
collaboratorsintegerrequired
two_factor_authenticationbooleanrequired
planobjectoptional
business_plusbooleanoptional
ldap_dnstringoptional
304Not modified
401Requires authentication
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
422Validation failed, or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional
Error handling
A 401 is returned: Requires authentication. A 403 is returned: Forbidden. A 404 is returned: Resource not found. A 422 is returned: Validation failed, or the endpoint has been spammed.
Was this helpful?