# Update user groups Updates user's groups. NoticePass IDs of all groups where the users should be, other groups will be automatically deactivated for this user.This method automatically updates user tags in Mailchimp if you have connected it. Endpoint: PATCH /projects/{project_id}/users/{user_id}/user_groups Version: v1 Security: Server ## Path parameters: - `user_id` (string, required) User ID. You can find it in Publisher Account > Login settings > Users > Username/ID. - `project_id` (string, required) Login project ID from Publisher Account. ## Request fields (application/json): - `user_groups` (array, required) List of user groups ID. Example: [1,2,3] ## Response 200 fields (application/json): - `id` (integer, required) Group ID. - `is_default` (boolean, required) Shows whether the group is default or not. - `is_deletable` (boolean, required) Shows whether the group is delatable or not. - `name` (string, required) Group name. ## Response 400 fields (application/json): - `error` (object, required) - `error.code` (string, required) Error code. Example: "003-061" - `error.description` (string, required) Error description. Example: "Object not found." - `error.details` (object) Additional information. ## Response 401 fields (application/json): - `error` (object, required) - `error.code` (string, required) Error code. Example: "003-061" - `error.description` (string, required) Error description. Example: "Object not found." - `error.details` (object) Additional information. ## Response 404 fields (application/json): - `error` (object, required) - `error.code` (string, required) Error code. Example: "003-061" - `error.description` (string, required) Error description. Example: "Object not found." - `error.details` (object) Additional information. ## Response 422 fields (application/json): - `error` (object, required) - `error.code` (string, required) Error code. Example: "003-061" - `error.description` (string, required) Error description. Example: "Object not found." - `error.details` (object) Additional information.