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

# Update User

`PATCH /api/users/{id}`

## Request

- Base URL: `https://uptimeify.io`
- URL: `https://uptimeify.io/api/users/{id}`
- Auth: HTTP bearer

PATCH /api/users/:id

## Path parameters

- `id` string, required

## Request body

- object
  - `firstName` string
  - `lastName` string
  - `role` string
  - `isActive` boolean
  - `customerIds` union[]
    - union
      - integer
      - string

## Response `200`

OK

- object
  - `success` true, required
  - `user` object, required
    - `id` string, required
    - `email` string, required
    - `name` string, nullable, required
    - `firstName` string, nullable, required
    - `lastName` string, nullable, required
    - `image` string, nullable, required: Avatar URL.
    - `role` string, required: admin, editor, readonly or responder.
    - `isActive` boolean, required
    - `createdAt` string, date-time, required
    - `customerAccess` object[], required: Customers a readonly login is limited to; empty = all.
      - `customerId` integer, required
      - `customerName` string, required

## Other responses

- `400`: Invalid or missing parameters.
- `401`: Missing, invalid or expired API token.
- `404`: No such resource, or not visible to this token.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api.md) · [All operations](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/revisions/2129a771ee7e?raw)
