---
title: "Update another user"
method: PATCH
path: "/user/{targetUserId}"
tags: ["User"]
---

# Update another user

`PATCH /user/{targetUserId}`

Updates a user within the same organization.

## Path parameters

- `targetUserId` string, required

## Request body

- UpdateAnotherUserDto
  - `status` 'active' | 'inactive' | 'pending' | 'awaiting_approval' | 'removed' | 'pending_email'
  - `role` 'owner' | 'billing_manager' | 'repo_admin' | 'contributor'

## Response `200`

- UserUpdateResponseDto
  - `statusCode` number, required
  - `type` string, required
  - `data` UserUpdateDto, required
    - `uuid` string, uuid, required
    - `email` string, required
    - `role` string, required
    - `status` string, required

## Other responses

- `400` — Validation error
- `401` — Not authenticated
- `403` — Insufficient permissions
- `500` — Unexpected error

---

[API](https://skmtc.net/kodustech/apis/kodus-api.md) · [All operations](https://skmtc.net/kodustech/apis/kodus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kodustech/kodus-api/revisions/e2282ac5fb3a/schema)
