---
title: "Set a user's status (admin)"
method: PATCH
path: "/admin/users/{id}/status"
tags: ["admin"]
---

# Set a user's status (admin)

`PATCH /admin/users/{id}/status`

Change a user's status without requiring them to log in.

## Path parameters

- `id` integer, required

## Request body

- AdminStatusPatch
  - `status` 0 | 1 | 2 | 3

## Response `200`

OK

- AdminUser
  - `auth_provider` string
  - `bot_owner_id` integer — BotOwnerID is the ID of the owning (human) user if this user is a bot. A non-zero value means this user is a bot and cannot authenticate via password.
  - `created` string — A timestamp when this task was created. You cannot change this value.
  - `email` string — The user's email address.
  - `id` integer — The unique, numeric id of this user.
  - `is_admin` boolean
  - `issuer` string
  - `name` string — The full name of the user.
  - `status` 0 | 1 | 2 | 3
  - `subject` string
  - `updated` string — A timestamp when this task was last updated. You cannot change this value.
  - `username` string — The username of the user. Is always unique.

## Other responses

- `400` — Bad Request
- `404` — Not Found

## Changes

- **2026-04-20** `3499c34cade4` — 1 info
  - endpoint added
- **2025-07-28** `d7c1f946dc48` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/go-vikunja/apis/vikunja-api/changes/admin/users/:id/status/patch.md)

---

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