PATCH
/
organization
/
users
/
{user_id}
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
organization_user = client.organization.users.update(
    user_id="user_id",
    role="admin",
)
print(organization_user.id)
{
  "id": "<string>",
  "email": "jsmith@example.com",
  "first_name": "<string>",
  "last_name": "<string>",
  "permissions": {
    "role": "owner"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The ID of the user

Body

application/json

Represents a user in an organization

Response

200 - application/json

User updated successfully

Represents a user in an organization