---
title: "Modifies the Current User"
method: PUT
path: "/api/v1/users/current"
tags: ["Users"]
---

# Modifies the Current User

`PUT /api/v1/users/current`

## Headers

- `X-Fields` string, mask

## Request body

- UserMutableFields
  - `username` string — Username of the User.
  - `email` string — Email of the User.

## Response `200`

Success

- UserCurrentDump
  - `username` string — Username of the User.
  - `email` string — Email of the User.
  - `id` integer — ID for the User resource.
  - `groups` GroupRef[]
    - `id` integer — ID for the Group resource.
    - `name` string — Name of the Group resource.
    - `url` string — URL for accessing the full Group resource.
  - `createdOn` string, date-time — Timestamp when the User resource was created.
  - `lastModifiedOn` string, date-time — Timestamp when the User resource was last modified.
  - `lastLoginOn` string, date-time — Timestamp when the User resource was last logged in.
  - `passwordExpiresOn` string, date-time — Timestamp when the User resource password expires on.

---

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