---
title: "Update a user"
method: PUT
path: "/api-public/v1/user/{user}"
tags: ["Users"]
---

# Update a user

`PUT /api-public/v1/user/{user}`

Update the designated user

This API may be called a maximum of 2 times per second.

## Path parameters

- `user` string, required

## Headers

- `X-VO-Api-Id` string, required
- `X-VO-Api-Key` string, required

## Request body

- AddUserPayload — The user information
  - `firstName` string, required
  - `lastName` string, required
  - `username` string, required
  - `email` string, email, required
  - `admin` boolean
  - `expirationHours` number — The validity duration for the invitatation/set password link sent to the added user.

## Response `200`

Some details about the user that was added

- AddUserResponse — Some info about the user
  - `firstName` string
  - `lastName` string
  - `username` string
  - `email` string
  - `createdAt` string
  - `passwordLastUpdated` string
  - `verified` boolean — Whether or not this user has set their password (will always be false)
  - `_selfUrl` string

## Other responses

- `400` — Problem with the request arguments. The response payload may include an error message.
- `401` — Authentication parameters missing
- `403` — Authentication failed or rate-limit reached
- `404` — User not found
- `409` — The requested username or email address is not available
- `422` — You have reached your user limit.
- `500` — Internal Server Error

---

[API](https://skmtc.net/victorops/apis/victorops-api.md) · [All operations](https://skmtc.net/victorops/apis/victorops-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/victorops/victorops-api/versions/7a7391256058/schema)
