---
title: "PUT /user"
method: PUT
path: "/user"
tags: ["Users"]
---

# PUT /user

`PUT /user`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/user`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/user/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the name of the user who owns the personal access token (PAT) used to authenticate. API tokens aren't supported. The response doesn't include `role`.

## Request body

- UpdateCurrentUserRequest: Object representing a user update request
  - `name` string, required: New name for the user

## Response `200`

Updated user.

- User: Represents a user in the system
  - `email` string, required: User's email address
  - `id` string, required: Unique identifier for the user
  - `name` string, required: User's full name
  - `role` UserDetailsRole, required: Detailed information about a user's role
    - `id` string, required: Unique identifier for the role
    - `name` string, required: Human-readable name of the role

## Other responses

- `400`: Invalid name, or the request was authenticated with an API token.

## Changes

- **2026-10-16** (v2) `fbc1b8430feb`: 1 info
  - added the non-success response with the status `400`

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/user/put.md)

---

[API](https://skmtc.dev/axiom/apis/axiom-public-api.md) - [All operations](https://skmtc.dev/axiom/apis/axiom-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axiom/apis/axiom-public-api/revisions/7e39a295e3ba?raw)
