---
title: "Updates an user account"
method: PUT
path: "/useraccounts/{useraccountid}"
tags: ["users"]
---

# Updates an user account

`PUT /useraccounts/{useraccountid}`

Updates the information of an existing user account. Users can modify their own properties. Only users with the appropriate permissions can modify other users' properties.

## Request body

- UpdateUserAccountType — Necessary information to create a user account, apart from the password
  - `username` string — The username of the user account
  - `email` string — The email of the user
  - `firstName` string — The first name of the user
  - `lastName` string — The last name of the user
  - `contactNumber` string — The contact number for the user
  - `testUserId` string — Optional user ID to be used for testing
  - `id` string, required — System wide unique identifier of the entity

## Response `200`

The user was updated successfully

- UserAccountType — Information that is only returned but never provided
  - `username` string — The username of the user account
  - `email` string — The email of the user
  - `firstName` string — The first name of the user
  - `lastName` string — The last name of the user
  - `contactNumber` string — The contact number for the user
  - `testUserId` string — Optional user ID to be used for testing
  - `id` string, required — System wide unique identifier of the entity
  - `apikey` string — The API key associated with this user. Currently API key is only returned when for the currently logged in user account.
  - `lastlogin` string, date-time — ISODateTimeType, ISO8601 date format with optional time part. For instance, 1970-01-18T09:19:41.204+0000
  - `lastip` string — Last access IP using this user account

## Other responses

- `400` — Malformed request
- `403` — User does not have permission to update the target user account.
- `default` — Unexpected error

---

[API](https://skmtc.net/gameanalytics/apis/datatiger-management-api.md) · [All operations](https://skmtc.net/gameanalytics/apis/datatiger-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gameanalytics/datatiger-management-api/versions/20a4f732a0b7/schema)
