Update avatar
PUT
/avatars/{uniqueID}
Upload a user avatar image for an account.
The image will be normalized to 512x512 PNG format and stored separately from automatically discovered logos. User-uploaded avatars take precedence over enriched avatars at read time.
This endpoint only accepts accountID values for the uniqueID parameter.
To access this endpoint using an access token
you'll need to specify the /accounts.write scope.
curl -X PUT "https://api.moov.io/avatars/{uniqueID}" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00" \
-F "file=@/path/to/file"mc, _ := moov.NewClient()
var accountID string
image, _ := os.Open("/path/to/image.png")
mc.UploadAvatar(ctx, accountID, image)
The request completed successfully, but there is no content to return.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The server could not understand the request due to invalid syntax.
{
"error": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request contained missing or expired authentication.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The user is not authorized to make the request.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The requested resource was not found.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request payload is larger than the server is willing or able to process.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The media type of the request payload is not supported.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Request was refused due to rate limiting.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed due to an unexpected error.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed because a downstream service failed to respond.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Headers
X-Moov-Version
string
Set this header to v2027.01.00 to use the API described in this specification.
When omitted, the server defaults to v2024.01.00, the earliest supported version, which may not match the behavior documented here.
An unrecognized well-formed version uses the latest supported version that is not newer than the requested version, when one exists.
For example,
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
Possible values:
v2027.01.00
Path parameters
uniqueID
string
required
The accountID to upload the avatar for. Only accountID values are accepted for writes.
Body
multipart/form-data
file
string<binary>
required
A JPEG, PNG, or WebP image file to upload as an avatar.