# Manage groups for user Manages groups for a user. A default group cannot be passed to this method. NoticeA Default group cannot be passed to this method.This method automatically updates user tags in Mailchimp if you have connected it. Endpoint: PUT /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): - `add_user_groups` (array) List of user groups ID. Example: [1,2,3] - `remove_user_groups` (array) List of user groups ID. Example: [4,5,6] ## 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.