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

# Update a user

`PATCH /api/users/{id}`

## Request body

- object
  - `externalId` string, nullable
  - `space` 'production' | 'playground' | 'shared-playground'

## Response `200`

Undescribed

- object
  - `id` string, required
  - `externalId` string, nullable, required
  - `createdAt` string, date, required
  - `updatedAt` string, date, required
  - `createdBy` string, nullable, required
  - `space` 'production' | 'playground' | 'shared-playground', required
  - `token` string, required

---

[API](https://skmtc.dev/agentview/apis/agentview-api.md) · [All operations](https://skmtc.dev/agentview/apis/agentview-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentview/agentview-api/revisions/1ad6fdb78182/schema)
