putty
API ReferenceAccount

Update the caller's profile

Updates the per-caller profile. Both fields are optional; a caller can update one without touching the other. `displayName` is trimmed and capped to 80 characters; an empty string is treated as `null` and clears the saved value. `avatarId` is the 1-based index of the chosen Putty brand avatar (`avatar-1.png` … `avatar-20.png`); values outside the range are rejected with a 400.

PATCH
/account/me

Updates the per-caller profile. Both fields are optional; a caller can update one without touching the other. displayName is trimmed and capped to 80 characters; an empty string is treated as null and clears the saved value. avatarId is the 1-based index of the chosen Putty brand avatar (avatar-1.png … avatar-20.png); values outside the range are rejected with a 400.

Authorization

bearerAuth
AuthorizationBearer <token>

A bearer token. The Account routes accept a Privy access token; the MCP transport accepts an sk- API key issued by POST /account/api-keys.

In: header

Request Body

application/json

The fields to update.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/account/me" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "displayName": "string",  "avatarId": 1}