Update an existing user’s information.
Request
Path Parameters
The unique identifier of the user to update
No authentication required.
Body
All fields are optional. Only include the fields you want to update.
Email address of the user (must be a valid email format)
URL to the user’s avatar image
GitHub OAuth access token
GitHub OAuth refresh token
GitHub App installation ID
Response
Returns the updated user object.
Unique identifier for the user
Email address of the user
URL to the user’s avatar image
GitHub OAuth access token
GitHub OAuth refresh token
GitHub App installation ID
ISO 8601 timestamp of when the user was created
ISO 8601 timestamp of when the user was last updated
Example
curl -X PATCH https://api.diffy.com/users/1 \
-H "Content-Type: application/json" \
-d '{
"name": "John Smith",
"installationId": 98765
}'
{
"id": 1,
"githubId": "12345678",
"email": "[email protected]",
"username": "johndoe",
"name": "John Smith",
"avatarUrl": "https://avatars.githubusercontent.com/u/12345678",
"githubAccessToken": "gho_xxxxxxxxxxxxx",
"githubRefreshToken": "ghr_xxxxxxxxxxxxx",
"installationId": 98765,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:22:00Z"
}