Skip to content
Connect an agent

Keys

Change the name your account is shown by

Sets the display name, trimmed, at most 80 characters with no line breaks.

PATCH/user/profile

TL;DR

QuestionAnswer
What does it do?Change the name your account is shown by.
What does it take?A JSON body of type UpdateProfileBody.
What does it return?Status 200 with a body of type AccountProfile.
What can go wrong?400 the name is too long or has a line break; 401 not signed in; 403 the request came from an origin that may not make changes; 429 too many requests. Every failure uses the one error envelope.

What it does

Sets the display name, trimmed, at most 80 characters with no line breaks. An empty name or null clears it.

Request body

The body has the type UpdateProfileBody.

FieldTypeRequiredDescription
namestring | nullyesThe name to be shown by, at most 80 characters once trimmed, with no line breaks. Empty or null clears it. at most 320 characters.

Responses

StatusMeaningBody
200The account now.AccountProfile
400The name is too long or has a line break.ErrorResponse
401Not signed in.ErrorResponse
403The request came from an origin that may not make changes.ErrorResponse
429Too many requests.ErrorResponse

Response body

A 200 answer has the type AccountProfile.

FieldTypeRequiredDescription
idstringyes
emailstringyes
namestring | nullyesThe name the account is shown by, or null for none.
createdAtintegeryesWhen the account was made, in milliseconds since the epoch.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools