Update the authenticated user

PATCH {{baseUrl}}/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.

Request Body

{"name"=>"<string>", "email"=>"<string>", "blog"=>"<string>", "twitter_username"=>"<string>", "company"=>"<string>", "location"=>"<string>", "hireable"=>"<boolean>", "bio"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false,&quot;name&quot;:&quot;monalisa octocat&quot;,&quot;company&quot;:&quot;GitHub&quot;,&quot;blog&quot;:&quot;https://github.com/blog&quot;,&quot;location&quot;:&quot;San Francisco&quot;,&quot;email&quot;:&quot;octocat@github.com&quot;,&quot;hireable&quot;:false,&quot;bio&quot;:&quot;There once was...&quot;,&quot;twitter_username&quot;:&quot;monatheoctocat&quot;,&quot;public_repos&quot;:2,&quot;public_gists&quot;:1,&quot;followers&quot;:20,&quot;following&quot;:0,&quot;created_at&quot;:&quot;2008-01-14T04:33:35Z&quot;,&quot;updated_at&quot;:&quot;2008-01-14T04:33:35Z&quot;,&quot;private_gists&quot;:81,&quot;total_private_repos&quot;:100,&quot;owned_private_repos&quot;:100,&quot;disk_usage&quot;:10000,&quot;collaborators&quot;:8,&quot;two_factor_authentication&quot;:true,&quot;plan&quot;:{&quot;name&quot;:&quot;Medium&quot;,&quot;space&quot;:400,&quot;private_repos&quot;:20,&quot;collaborators&quot;:0}}