## Update `client.users.update(stringuserRef, UserUpdateParamsbody, RequestOptionsoptions?): UserUpdateResponse` **patch** `/users/{user_ref}` Updates a user. ### Parameters - `userRef: string` User `id` or `external_id`. - `body: UserUpdateParams` - `tags: Tags` Tag updates. - `create?: Array` Tags to create. The tag key must not already exist. - `key: string` Tag key. Must not contain #, /, or :. Max 50 characters. - `value: string` Tag value. Must not contain #, /, or :. Max 200 characters. - `delete?: Array` Tags to remove. - `key: string` Tag key to delete. - `set?: Array` Tags to set. Creates a new tag or updates an existing tag. - `key: string` Tag key. Must not contain #, /, or :. Max 50 characters. - `value: string` Tag value. Must not contain #, /, or :. Max 200 characters. - `update?: Array` Tags to update. The tag key must already exist. - `key: string` Tag key. Must not contain #, /, or :. Max 50 characters. - `value: string` Tag value. Must not contain #, /, or :. Max 200 characters. ### Returns - `UserUpdateResponse` - `data: User` User object. - `id: string` FRAGMENT generated unique ID. - `external_id: string` User-provided unique ID. - `tags: Array` Tags for the user. - `key: string` Tag key. - `value: string` Tag value. ### Example ```typescript import Fragment from '@fragment-dev/ts-node'; const client = new Fragment(); const user = await client.users.update('user_dXNyX2ZyYWdfMDAx', { tags: {} }); console.log(user.data); ```