---
title: "Set avatar"
method: POST
path: "/v4/accounts/{voip_id}/users/{id}/avatar"
tags: ["User"]
---

# Set avatar

`POST /v4/accounts/{voip_id}/users/{id}/avatar`

## Request

- Base URL: `https://api.phone.com`
- URL: `https://api.phone.com/v4/accounts/{voip_id}/users/{id}/avatar`
- Auth: HTTP bearer

Sets user's avatar

## Path parameters

- `voip_id` integer, required
- `id` integer, required

## Request body

- UserAvatar
  - `image` string, required: Image (encoded as base64)

## Response `201`

Created

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation failed
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/revisions/6a06b2da42aa?raw)
