PUT/v2/users/{user-id}/userGroupsUpdate user groups

Update group admin flags for a user's group memberships
headerAuthorizationAuthentication token (bearer token or API key).
[{
"userGroupId" : Number,
"groupAdmin" : Boolean
}]

Response

status200All ok
status401Invalid authentication token
status403Insufficient rights

Example: Make a user a group administrator in the specified user group

PUT/v2/users/7/userGroups

headerAuthorizationBearer 31057c72-b481-4d1a-95b1-6ecb846b613a
[{
"userGroupId": 1,
"groupAdmin": true
}
]

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=()
{}