+++ date = "2000-01-01T00:00:00+00:02" title = "User Update" description = "Endpoint to update a user account" +++
Updates the specified user. Please note this api requires administrative privileges.
PATCH /api/users/{login}
Example Request Body:
{
"email": "octocat@github.com",
"admin": false,
"active": true
}Example Response Body:
{
"id": 1,
"login": "octocat",
"email": "octocat@github.com",
"avatar_url": "http://www.gravatar.com/avatar/7194e8d48fa1d2b689f99443b767316c",
"active": true,
"admin": false,
"machine": false,
"syncing": false,
"synced": 1564096971,
"created": 1564096971,
"updated": 1564096971,
"last_login": 1564096971
}