Updates the member photo of the currently authenticated member
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
Request
- Base URLhttps://developer.vista.co (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Current Loyalty session token, represents a 'signed-in' member
Region Code
Request body multipart/form-data
Response
Success
Changes
No recorded changes to this operation across all 5 revisions of this API.