---
title: "Update avatar data"
method: PATCH
path: "/me/avatars/{imageHash}"
tags: ["avatars"]
---

# Update avatar data

`PATCH /me/avatars/{imageHash}`

Updates the avatar data for a given avatar for the authenticated user.

## Path parameters

- `imageHash` string, required

## Request body

- object — The avatar data to update. Partial updates are supported, so only the provided fields will be updated.
  - `rating` 'G' | 'PG' | 'R' | 'X' — Rating associated with the image.
  - `alt_text` string — Alternative text description of the image.

## Response `200`

Avatar updated successfully

- Avatar — An avatar that the user has already uploaded to their Gravatar account.
  - `image_id` string, required — Unique identifier for the image.
  - `image_url` string, uri, required — Image URL
  - `rating` 'G' | 'PG' | 'R' | 'X', required — Rating associated with the image.
  - `alt_text` string, required — Alternative text description of the image.
  - `selected` boolean — Whether the image is currently selected as the provided selected email's avatar.
  - `updated_date` string, date-time, required — Date and time when the image was last updated.

## Other responses

- `401` — Not Authorized
- `403` — Insufficient Scope
- `404` — Avatar not found

---

[API](https://skmtc.net/gravatar/apis/gravatar-public-api.md) · [All operations](https://skmtc.net/gravatar/apis/gravatar-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gravatar/gravatar-public-api/versions/afbaed3c5b19/schema)
