This endpoint can be used to add or remove groups to root profile or sub profiles
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
Query parameters
-
clientId of the sub profile you want to add a group to
-
accountId of the sub profile you want to add a group to
PUT
/profile/groups
curl \
--request PUT 'https://api.universecloud.io/profile/groups' \
--header "X-Api-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"group":"string"}'
Request examples
{
"group": "string"
}
Response examples (200)
{
"id": "string",
"subject": "string",
"accountId": "string",
"clientId": "string",
"branch": "string",
"plans": [
{
"planName": "pro",
"since": "2023-06-21T12:34:56+00:00",
"until": "2023-06-21T12:34:56+00:00",
"metadata": {
"seats": 5
}
}
],
"avatar": "string",
"email": "user@tld.com",
"settings": {
"themeColor": "blue"
},
"metadata": {
"plan": "super-cool-plan"
},
"groups": [
"admin"
],
"createdAt": "2023-06-21T12:34:56+00:00",
"updatedAt": "2023-06-21T12:34:56+00:00"
}