Skip to content

Add members to a group

POST
/v1/groups/{groupId}/members
curl --request POST \
--url https://api.varman.io/v1/groups/example/members \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "memberIds": [ "example" ] }'

Adds one or more members to a group without touching existing members. Members already in the group are ignored. Use to enrol new hires in a team.

groupId
required
string

Group id (grp_…)

Media typeapplication/json
object
memberIds
required

Member ids (mem_…) to add

Array<string>

Example generated

{
"memberIds": [
"example"
]
}

The updated group