---
title: "Update user status"
method: PUT
path: "/api/v4/users/{user_id}/status"
tags: ["status"]
---

# Update user status

`PUT /api/v4/users/{user_id}/status`

Manually set a user's status. When setting a user's status, the status will remain that value until set "online" again, which will return the status to being automatically updated based on user activity.
##### Permissions
Must have `edit_other_users` permission for the team.

## Path parameters

- `user_id` string, required

## Request body

- object
  - `user_id` string, required — User ID
  - `status` string, required — User status, can be `online`, `away`, `offline` and `dnd`
  - `dnd_end_time` integer — Time in epoch seconds at which a dnd status would be unset.

## Response `200`

User status update successful

- 38cb7293Status
  - `user_id` string
  - `status` string
  - `manual` boolean
  - `last_activity_at` integer

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
