---
updatedAt: 2025-07-15T16:28:01.000Z
agentTools:
  projectIndex: https://developers.kaleyra.io/llms.txt
---

# Update user avatar

Update a user avatar by its Id.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Kaleyra Video REST API v2",
    "version": "2.0.0",
    "description": "Kaleyra Video Api v2.0\n"
  },
  "servers": [
    {
      "url": "https://{base_url}",
      "variables": {
        "base_url": {
          "default": "api.sandbox.eu.bandyer.com"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "User"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v2/users/{user_id}/avatar": {
      "put": {
        "summary": "Update user avatar",
        "description": "Update a user avatar by its Id.",
        "operationId": "video-v2-useravatar-put",
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "user_id",
            "description": "User Id.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "avatar": {
                    "type": "string",
                    "description": "User avatar file. **This field is treated as PII/PHI**",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "avatar": {
                  "contentType": "image/png, image/jpeg"
                }
              }
            },
            "image/png": {
              "schema": {
                "type": "string",
                "format": "base64"
              }
            },
            "image/jpg": {
              "schema": {
                "type": "string",
                "format": "base64"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "User Id."
                    },
                    "avatar_url": {
                      "type": "string",
                      "description": "User avatar resource URL. **The file pointed by this URL is treated as PII/PHI**"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "User was not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    }
  }
}
```