# Updates the username of the currently authenticated member

#### Licenses Required
- Vista.Ocapi

Endpoint: PUT /ocapi/v1/members/current/credentials/username
Version: V1

## Description:

  - `Licenses Required` ()
    Vista.Ocapi

## Header parameters:

  - `loyaltySessionToken` (string)
    Current Loyalty session token, represents a 'signed-in' member

  - `Connect-Region-Code` (string)
    Region Code

## Request body:

  - `application/json, text/json, application/*+json, application/json-patch+json` (unknown)
    Updated username and logged in member's current password for verification

## Request fields (application/json):

  - `username` (string, required)
    Gets the new username

  - `currentPassword` (string, required)
    Gets the current password of the member

## Response 204:

  - `204` (unknown)
    Member username updated.

## Response 400:

  - `400` (unknown)
    Request property is invalid or missing, or password validation failed.

## Response 401:

  - `401` (unknown)
    No member authenticated.

