Add Users to Group API

This API lets you to group users under the group_id

post
Group users API

https://api.roam.ai/v1/api/group/user/
Request
Response
Request
Headers
Api-key
required
string
Auth-key E.g.- a88d1dddd5ec4be18d7009e0ed4ad59f
Body Parameters
group_id
required
string
Adding users to group_id E.g.- 600959fdffb3fb11b5c66b58
users
required
string
User_id required to add to group_id E.g.- ["60095951ffb3fb11b9c66ba6", "60095980ffb3fb11b2c66b51"]
Response
200: OK
{
"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 'Content-Type: application/json' \
--header 'Api-Key: a88d1dddd5ec4be18d7009e0ed4ad59f' \
--data-raw '{
"group_id":"600959fdffb3fb11b5c66b58",
"users": ["60095951ffb3fb11b9c66ba6", "60095980ffb3fb11b2c66b51"]
}'