---
title: "Updates the username of the currently authenticated member"
method: PUT
path: "/ocapi/v1/members/current/credentials/username"
tags: ["Credentials"]
---

# Updates the username of the currently authenticated member

`PUT /ocapi/v1/members/current/credentials/username`

#### Licenses Required


- Vista.Ocapi

## Headers

- `loyaltySessionToken` string
- `Connect-Region-Code` string

## Request body

- OcapiV1LoyaltyMembersUpdateMemberUsernameUpdate — Represents a secure update of a member entity's username
  - `username` string, required — Gets the new username
  - `currentPassword` string, required — Gets the current password of the member

## Response `204`

Member username updated.

## Other responses

- `400` — Request property is invalid or missing, or password validation failed.
- `401` — No member authenticated.

---

[API](https://skmtc.net/vista/apis/vista-digital-platform.md) · [All operations](https://skmtc.net/vista/apis/vista-digital-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vista/vista-digital-platform/versions/3a81c0aed14e/schema)
