Add Users to Group API
This API lets you to group users under the group_id
Group users API
PUT
https://api.roam.ai/v1/api/group/user/
Headers
Name
Type
Description
Api-key
string
Auth-key E.g.- a88d1dddd5ec4be18d7009e0ed4ad59f
Request Body
Name
Type
Description
group_id*
string
Adding users to group_id E.g.- 600959fdffb3fb11b5c66b58
users*
string
User_id required to add to group_id E.g.- ["60095951ffb3fb11b9c66ba6", "60095980ffb3fb11b2c66b51"]
{
"status": true,
"msg": "Success.",
"code": 201,
"data": "Users grouped successfully."
}
Sample Request
curl --location --request POST 'https://api.roam.ai/v1/api/group/user/' \
--header 'Api-key: 289eb8eb262140629664078bec76d60c' \
--header 'Content-Type: application/json' \
--data-raw '{
"group_id":"63216b74bac5e022b548abe5",
"users": ["621e0782aa28db38198093e6", "621e078684540e101ead29e1"]
}'
Last updated
Was this helpful?