POST/v2/users/{user-id}/userGroupsAdd user to groups

Add a user to one or more user groups
headerAuthorizationAuthentication token (bearer token or API key).
[{
"userGroupId" : Number,
"groupAdmin" : Boolean
}]

Response

status200All ok
status401Invalid authentication token
status403Insufficient rights

Example: Add a user to a user group

POST/v2/users/4/userGroups

headerAuthorizationBearer 49ae0a1c-0fbb-477a-a604-996524562238
[{
"userGroupId": 1,
"groupAdmin": false
}
]

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
{}