---
title: "Crop Avatar"
method: POST
path: "/users/{user_id}/avatar/crop"
tags: ["Users"]
---

# Crop Avatar

`POST /users/{user_id}/avatar/crop`

## Request

- Base URL: `https://api.lolz.team`
- URL: `https://api.lolz.team/users/{user_id}/avatar/crop`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lolz/apis/lolzteam-public-api-forum/docs/users/:user_id/avatar/crop/post.ts> (a function with typed inputs; its response is checked against the schema)

Crop avatar for a user.

Required scopes:
+ **post**

## Path parameters

- `user_id` union, required
  - string
  - integer

## Request body

- object
  - `x` integer: The starting point of the selection by width. Default value - 0
  - `y` integer: The starting point of the selection by height. Default value - 0
  - `crop` integer: Selection size.

## Response `200`

Successful Response.

- object
  - `status` string, required
  - `message` string, required
  - `system_info` RespSystemInfo, required
    - `visitor_id` integer, required
    - `time` integer, required
    - `log_id` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Error Response.
- `404`: Not Found

---

[API](https://skmtc.dev/lolz/apis/lolzteam-public-api-forum.md) - [All operations](https://skmtc.dev/lolz/apis/lolzteam-public-api-forum/llms.txt) - [OpenAPI document](https://skmtc.dev/lolz/apis/lolzteam-public-api-forum/revisions/acd46e0a23e3?raw)
