Skip to content
Get started

Update

users.me.update(MeUpdateParams**kwargs) -> MeUpdateResponse
PATCH/users/me

Update the current authenticated user.

ParametersExpand Collapse
has_completed_onboarding: Optional[bool]
ReturnsExpand Collapse
class MeUpdateResponse:
user: User

The current authenticated user.

id: str

The unique identifier of the user.

created_at: object

The time the user was created.

email: str

The email address of the user.

first_name: Optional[str]

The first name of the user.

has_completed_onboarding: bool

Whether the user has completed the onboarding tutorial.

last_name: Optional[str]

The last name of the user.

organization_id: str

The ID of the organization the user belongs to.

updated_at: object

The time the user was last updated.

Update

import os
from revox import Revox

client = Revox(
    api_key=os.environ.get("REVOX_API_KEY"),  # This is the default and can be omitted
)
me = client.users.me.update()
print(me.user)
{
  "user": {
    "id": "id",
    "created_at": {},
    "email": "email",
    "first_name": "first_name",
    "has_completed_onboarding": true,
    "last_name": "last_name",
    "organization_id": "organization_id",
    "updated_at": {}
  }
}
Returns Examples
{
  "user": {
    "id": "id",
    "created_at": {},
    "email": "email",
    "first_name": "first_name",
    "has_completed_onboarding": true,
    "last_name": "last_name",
    "organization_id": "organization_id",
    "updated_at": {}
  }
}