Classic APIs
ClassicUsersApi
validateDisplayNameForExistingUser

validateDisplayNameForExistingUser

Validates a display name for an existing user (NOTE: This does not change the display name).

Parameters

NameTypeDescription
displayNamestringThe display name to be validated.
userIdIdentifierThe id of the existing user.

Example

const { data: displayNameIsValid } = await ClassicUsersApi.validateDisplayNameForExistingUser({
  userId: 45348281,
  displayName: "Hello",
}); 

Endpoint

GET /v1/users/{userId}/display-names/validate