---
title: "Edit Authenticated User"
method: PATCH
path: "/user"
tags: ["Users"]
---

# Edit Authenticated User

`PATCH /user`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/user`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-api-v2/docs/user/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- UserOperation[]: A JSON Patch document as defined by <a href="https://tools.ietf.org/html/rfc6902#section-3" target="_blank">RFC 6902</a>
  - `value` string, required
  - `op` 'replace', required: Patch operation to perform
  - `path` '/username' | '/fullName' | '/timezone' | '/avatarStorageId', json-pointer, required: A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>

## Response `200`

User was successfully updated

- CrowdinAuthenticateUserResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` CrowdinAuthenticateUser, required
    - `id` integer: User Identifier
    - `username` string
    - `email` string
    - `emailVerified` boolean
    - `fullName` string, nullable: First Name
    - `avatarUrl` string: User Avatar
    - `createdAt` string, date-time
    - `lastSeen` string, date-time, nullable
    - `twoFactor` 'enabled' | 'disabled'
    - `timezone` string, nullable

## Other responses

- `400`: Invalid Request Body
- `401`: Unauthorized
- `403`: Forbidden
- `405`: Method Not Allowed

---

[API](https://skmtc.dev/crowdin/apis/crowdin-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-api-v2/revisions/27aae7751699?raw)
