Me
Get the currently authenticated user.
Args: user: Authenticated user
Returns: The currently authenticated user.
Successful Response
GET /users/me HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
Successful Response
{
"password": "text",
"password_expired": true,
"name": "text",
"avatar_url": "text",
"company": "text",
"job_title": "text",
"metadata": {},
"id": "123e4567-e89b-12d3-a456-426614174000",
"username": "text",
"email": "text",
"oauth_provider": "text",
"oauth_id": "text",
"is_active": true,
"is_superuser": false,
"is_service_account": false,
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"is_onboarded": false
}Update the currently authenticated user.
Args: user_update: User update user: Authenticated user user_manager: User manager
Returns: The updated user.
Raises: ValueError: If the user is internal.
Model for user updates.
The name of the user.
The avatar URL of the user.
The company of the user.
The job title of the user.
Additional metadata associated with the user.
New username for the user. Not possible to change the username for OAuth2 user accounts because it's the same as the email address provided by the external OAuth2 provider.
^[a-zA-Z0-9_\-@.]+$New email address for the user. Not possible to change the email address for OAuth2 user accounts because it's the same as the email address provided by the external OAuth2 provider.
Successful Response
Validation Error
PATCH /users/me HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 207
{
"password": "text",
"password_expired": true,
"name": "text",
"avatar_url": "text",
"company": "text",
"job_title": "text",
"metadata": {},
"username": "text",
"email": "[email protected]",
"is_active": true,
"is_onboarded": true
}{
"password": "text",
"password_expired": true,
"name": "text",
"avatar_url": "text",
"company": "text",
"job_title": "text",
"metadata": {},
"id": "123e4567-e89b-12d3-a456-426614174000",
"username": "text",
"email": "text",
"oauth_provider": "text",
"oauth_id": "text",
"is_active": true,
"is_superuser": false,
"is_service_account": false,
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"is_onboarded": false
}Last updated
Was this helpful?