Update Authenticated User

Updates the authenticated user's profile

Usage #

// Import the typed helper
import { updateAuthenticatedUser } from "@hotglue/sdk/github";
const result = await client.execute({
...updateAuthenticatedUser({
name: string,
email: string,
bio: string,
// ...
}),
userId: "user_123",
});
// result is typed as UpdateAuthenticatedUserOutput
const result = await client.execute({
integration: "github",
tool: "update_authenticated_user",
userId: "user_123",
input: {
name: string,
email: string,
bio: string,
// ...
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["github"],
userId: "user_123",
}),
});
await agent.generate("run the Update Authenticated User tool");

Required Permissions #

user

Input Schema #

name string

New display name

email string

Publicly visible email

bio string

Short biography

company string

Company name

location string

Location

blog string

Blog URL

twitter_username string

Twitter username

This tool calls: #

PATCH https://api.github.com/user