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

# Updates the member photo of the currently authenticated member

`PUT /ocapi/v1/members/current/photo`

The photo is uploaded via a form-data key/value pair with type file and the key being "MemberPhoto".




The Photo file should be uploaded using the HTTP request body type form-data set to File,
with a Key of MemberPhoto and Value of the photo file to be uploaded.




Supported photo file formats are: JPEG, BMP, PNG, HEIC, WebP.
File size limit and photo dimensions are configured in Loyalty.
The file size limit specifies and upper-bound on file size, while photo dimensions are an exact requirement.




An HTTP Bad Request is returned in the following cases:

- No Loyalty member is currently logged in.
- No photo is uploaded.
- Based on Loyalty configuration, the Loyalty member isn't eligible to update their photo
- The photo file size is too large.
- The photo dimensions don't match the dimensions configured in Loyalty.
- The photo format isn't accepted.




An HTTP Bad Gateway is returned if the connection to Loyalty times out.

#### Licenses Required


- Vista.Ocapi
- Vista.Loyalty.MemberPhotos

## Headers

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

## Response `200`

Success

- OcapiV1LoyaltyMembersPhotosCreatedMemberPhoto — Represents a member photo that has just been created
  - `memberPhoto` OcapiV1LoyaltyMembersPhotosMemberPhoto — Represents the base properties of the photo associated with a member
    - `uriExpiresAt` string, date-time, required — Gets the date and time that the URI returned for retrieving the photo is no longer valid
    - `uri` string, uri, required — Gets the address used for retrieving the photo

## Other responses

- `400` — Provided photo does not meet configured requirements.
- `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/revisions/3a81c0aed14e/schema)
