---
title: "Update user status in the organization"
method: PUT
path: "/v1/users/{userId}/status"
tags: ["Users"]
---

# Update user status in the organization

`PUT /v1/users/{userId}/status`

## Request

- Base URL: `https://api.tetrascience.com`
- URL: `https://api.tetrascience.com/v1/users/{userId}/status`
- Auth: API key in header `ts-auth-token` and API key in header `x-org-slug`

## Parameters

- `#/paths/~1v1~1organizations~1{organizationId}~1users~1{userId}/delete/parameters/1` (unresolved $ref)

## Request body

- object
  - `status` 'active' | 'inactive'

## Response `200`

Successfully updated user status

- object[]
  - `id` Id (unresolved $ref)
  - `orgSlug` Schema (unresolved $ref)
  - `organizationId` Id (unresolved $ref)
  - `role` string
  - `roleId` Id (unresolved $ref)
  - `status` 'active' | 'inactive'
  - `userId` Id (unresolved $ref)
  - `orgName` string

## Other responses

- `401`: Invalid token
- `403`: Caller is not authorized to perform this action
- `404`: User not found

---

[API](https://skmtc.dev/tetrascience/apis/administration.md) - [All operations](https://skmtc.dev/tetrascience/apis/administration/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrascience/apis/administration/revisions/c1c829febcc5?raw)
