---
title: "Update user state"
method: POST
path: "/user-update-state"
---

# Update user state

`POST /user-update-state`

Update the state of a user based on the provided user ID and state.

## Request body

- object
  - `userId` string
  - `state` 'Active' | 'Deactivated' | 'Invited'

## Response `200`

User state updated successfully

- object
  - `message` string

## Other responses

- `400` — Invalid request or error occurred while updating the user state

---

[API](https://skmtc.net/supabase/apis/dalil-oauth-resource-api.md) · [All operations](https://skmtc.net/supabase/apis/dalil-oauth-resource-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/supabase/dalil-oauth-resource-api/versions/40a7125e0355/schema)
