---
title: "Update the API user/API key"
method: PUT
path: "/api-umbrella/v1/users/{id}"
tags: ["user"]
---

# Update the API user/API key

`PUT /api-umbrella/v1/users/{id}`

## Request body

- object
  - `user` User
    - `id` string, uuid
    - `first_name` string
    - `last_name` string
    - `email` string
    - `website` string
    - `use_description` string
    - `registration_source` string
    - `throttle_by_ip` boolean
    - `roles` string
    - `enabled` string
    - `api_key` string — The full API key. This is only returned on initial user creation and to the administrator who created the user for 10 minutes after creation.
    - `api_key_hides_at` string, date-time — When an administrator creates an API key, the full API key will be returned initially, but it's suggested that the full API key be hidden after this expiration date (10 minutes after creation).
    - `api_key_preview` string — The first 6 characters of the API key. This is intended to allow administrators to identify API keys without exposing the full API keys to admins.
    - `email_verified` boolean
    - `registration_ip` string
    - `registration_user_agent` string
    - `registration_referer` string
    - `registration_origin` string
    - `created_at` string, date-time — The time the record was created (ISO 8601 format)
    - `creator` AdminCreator
      - `username` string, email — E-mail address of the admin that created the record
    - `updated_at` string, date-time — The time the record was last updated (ISO 8601 format)
    - `updater` AdminUpdater
      - `username` string, email — E-mail address of the admin that last updated the record

## Response `204`

Successfully updated record

---

[API](https://skmtc.net/gsa/apis/api-umbrella-admin-api.md) · [All operations](https://skmtc.net/gsa/apis/api-umbrella-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gsa/api-umbrella-admin-api/revisions/0c9a8c78c26a/schema)
