Updates the username of the currently authenticated member

Licenses Required

  • Vista.Ocapi
Request
header Parameters
loyaltySessionToken
string

Current Loyalty session token, represents a 'signed-in' member

Connect-Region-Code
string

Region Code

Request Body schema:
required

Updated username and logged in member's current password for verification

username
required
string non-empty

Gets the new username

currentPassword
required
string non-empty

Gets the current password of the member

Responses
204

Member username updated.

400

Request property is invalid or missing, or password validation failed.

401

No member authenticated.

put/ocapi/v1/members/current/credentials/username
Request samples
{
  • "username": "string",
  • "currentPassword": "string"
}