Set a User's Groups - Fluid Topics - 3.6

Use Fluid Topics Web API

Product
Fluid Topics
FT_Version
3.6
Category
Technical Notes
language
English

This web service changes the groups a user belongs to.

It is only able to set manual groups, the ones coming from authentication are computed and erased each time users authenticate.

Setting groups with this web service overrides the groups previously assigned to the user.
To retrieve the groups previously assigned to a user, use the Get a User's Groups web service.

If a group is not set yet, it is automatically created.

Method

Endpoint

PUT

/api/users/$USER_ID/groups

Where:

  • $USER_ID is the user identifier.

Input Body Example

The request must set the Content-Type: application/json header.

{
"manualGroups": ["group10", "group11"]
}

Output Example

{
"id": "a43eb18a-3f48-4732-9389-61b540ce9d0d",
"manualGroups": ["group10", "group11"],
"authenticationGroups": ["group2","group3"]
}