---
title: "Update user by ID"
method: PUT
path: "/v1/users/{userId}"
tags: ["Users"]
---

# Update user by ID

`PUT /v1/users/{userId}`

## Request

- Base URL: `https://api.tetrascience.com`
- URL: `https://api.tetrascience.com/v1/users/{userId}`
- Auth: API key in header `ts-auth-token` and API key in header `x-org-slug`

## Parameters

- `#/paths/~1v1~1organizations~1{organizationId}~1users~1{userId}/delete/parameters/1` (unresolved $ref)

## Request body

- object
  - `firstName` string
  - `lastName` string

## Response `200`

Responding with user details

- Schema (unresolved $ref)

## Other responses

- `401`: Invalid token
- `403`: Caller is not authorized to perform this action
- `404`: User not found

---

[API](https://skmtc.dev/tetrascience/apis/administration.md) - [All operations](https://skmtc.dev/tetrascience/apis/administration/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrascience/apis/administration/revisions/c1c829febcc5?raw)
