---
title: "Changes the avatar."
method: POST
path: "/api/models/{id}/avatar"
tags: ["Device Models"]
---

# Changes the avatar.

`POST /api/models/{id}/avatar`

## Path parameters

- `id` string, required

## Request body

- string

## Response `200`

OK

- string

## Other responses

- `404` — Not Found

## Changes

- **2026-08-20** `8f5ec4f45de1` — 1 breaking, 3 info
  - removed the media type `multipart/form-data` from the request body
  - added the media type `application/*+json` to the request body
  - added the media type `application/json` to the request body
  - added the media type `text/json` to the request body

[Change history](https://skmtc.dev/cgi-fr/apis/azure-iot-hub-portal-api/changes/api/models/:id/avatar/post.md)

---

[API](https://skmtc.dev/cgi-fr/apis/azure-iot-hub-portal-api.md) · [All operations](https://skmtc.dev/cgi-fr/apis/azure-iot-hub-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cgi-fr/azure-iot-hub-portal-api/revisions/8f5ec4f45de1/schema)
