Skip to main content
PATCH
/
v1
/
tenants
/
{tenant_id}
/
users
/
{user_id}
Update Tenant User
curl --request PATCH \
  --url http://localhost:8000/v1/tenants/{tenant_id}/users/{user_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "USER"
}'
{
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "role": "USER",
  "is_tenant_idp_managed": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "email": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "deactivated_on": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string | null

Path Parameters

tenant_id
string<uuid>
required
user_id
string<uuid>
required

Cookies

ks_uat
string | null

Body

application/json

Request to update a tenant user's role.

role
enum<string>
required

New role for the user

Available options:
USER,
OWNER,
ADMIN

Response

Successful Response

Tenant member response model.

user_id
string<uuid>
required

User ID

role
enum<string>
required

User role within the tenant

Available options:
USER,
OWNER,
ADMIN
is_tenant_idp_managed
boolean
required

Whether the user is managed by the tenant's identity provider

created_at
string<date-time>
required

Date the user was added to the tenant

updated_at
string<date-time>
required

Date the user was updated

email
string | null

User email address

first_name
string | null

User first name

last_name
string | null

User last name

deactivated_on
string<date-time> | null

Soft-deletion timestamp. NULL = active.