# Add a group **PUT /profile/groups** Add a group to root profile or a sub profile with the given params. Can only be called by root profile or a sub profile with group admin:subject This endpoint can be used to add or remove groups to root profile or sub profiles ## Servers - universecloud API v1: https://api.universecloud.io (universecloud API v1) ## Authentication methods - Api key auth - Bearer auth ## Parameters ### Query parameters - **clientId** (string) clientId of the sub profile you want to add a group to - **accountId** (string) accountId of the sub profile you want to add a group to ### Body: application/json (object) - **group** (string) name of the group you want to add ## Responses ### 200 Sucessfully added group #### Body: application/json (object) - **id** (string) id of the profile - **subject** (string) subject of the root profile - **accountId** (string) subject of a sub profile belonging to a root profile - **clientId** (string) if of the oauth client used for this profile - **branch** (string) context branch of the profile (empty for standard) - **plans** (array[object]) - **avatar** (string) url of the avatar for the profile - **email** (string) root email of the profile. cannot be updated - **settings** (object) settings for the profile. Can be used to store any values. Can be updated by root profile or sub profile - **metadata** (object) settings for the profile. Can only be updated by root profile - **groups** (array[string]) an array of groups the profile belongs to. Can only be updated by root profile - **createdAt** (string) date in rfc3339 / ISO 8601 format when the profile was created - **updatedAt** (string) date in rfc3339 / ISO 8601 format when the profile was updated [Powered by Bump.sh](https://bump.sh)