---
title: "Update a user"
method: PATCH
path: "/users/{id}"
tags: ["Users"]
---

# Update a user

`PATCH /users/{id}`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/users/{id}`
- Auth: HTTP basic

Updates an existing user's details and permissions. Only account administrators can change permission flags.

## Path parameters

- `id` string, required

## Request body

- UserObject3
  - `user` object, required
    - `first_name` string
    - `last_name` string
    - `email_address` string
    - `time_zone` string
    - `account_administrator` boolean
    - `can_manage_users` boolean
    - `can_manage_billing` boolean
    - `can_manage_agents` boolean
    - `can_create_projects` boolean
    - `all_projects_allowed` boolean

## Response `200`

Success

- IdIdentifierFirstNameObject
  - `id` integer
  - `identifier` string
  - `first_name` string
  - `last_name` string
  - `email_address` string
  - `time_zone` string
  - `account_administrator` boolean
  - `activated` boolean
  - `can_manage_users` boolean
  - `can_manage_billing` boolean
  - `can_create_projects` boolean
  - `can_manage_agents` boolean
  - `all_projects_allowed` boolean

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: Forbidden
- `404`: The requested resource could not be found.
- `422`: Unprocessable Entity
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
