Classic APIs
ClassicUsersApi
authenticatedUserSetDisplayName

authenticatedUserSetDisplayName

Sets the display name for the currently authenticated user.

Parameters

NameTypeDescription
newDisplayNamestringThe new display name for the authenticated user.
userIdIdentifierThe id of the currently authenticated user (the endpoint requires this for some reason).

Example

const { data: displayNameUpdated } = await ClassicUsersApi.authenticatedUserSetDisplayName({
  userId: 45348281,
  newDisplayName: "LoremIpsum",
}); 

Endpoint

PATCH /v1/users/{userId}/display-names