Update
client.users.me.update(MeUpdateParams { has_completed_onboarding } body?, RequestOptionsoptions?): MeUpdateResponse { user }
PATCH/users/me
Update the current authenticated user.
Parameters
Returns
Update
import Revox from '@revoxai/sdk';
const client = new Revox({
apiKey: process.env['REVOX_API_KEY'], // This is the default and can be omitted
});
const me = await client.users.me.update();
console.log(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": {}
}
}