validateDisplayNameForExistingUser
Validates a display name for an existing user (NOTE: This does not change the display name).
Parameters
Name | Type | Description |
---|---|---|
displayName | string | The display name to be validated. |
userId | Identifier | The id of the existing user. |
Example
const { data: displayNameIsValid } = await ClassicUsersApi.validateDisplayNameForExistingUser({
userId: 45348281,
displayName: "Hello",
});
Endpoint
GET /v1/users/{userId}/display-names/validate