---
title: "Avatars"
method: POST
path: "/avatars"
tags: ["avatars"]
---

# Avatars

`POST /avatars`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/avatars`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/avatars/post.ts> (a function with typed inputs; its response is checked against the schema)

Handles POST avatar requests.

## Request body `application/x-www-form-urlencoded`

- object
  - `file` string, required: file form data

## Response `200`

Successful operation.

- ModelsAvatar
  - `avatar_urls` ModelsImageURLs
  - `fileType` string
  - `name` string

## Other responses

- `400`: Possible error messages: * Invalid content type for image * Invalid 'end\_date' value * We were unable to resize your image, please check your image and possibly convert it to a png or jpeg and try again
- `500`: Internal Server Error

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
