Skip to main content
POST
Edit User Group Members
User groups are in beta. To use these endpoints now, contact your lemlist account manager.
Admins only: the API key must have been created by an admin of the team.
A user already in the group is not added twice, and a user not in it is ignored on removal. Both lists are optional. To replace the whole member list, use Update User Group.

Error codes

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

userGroupId
string
required

Id of the group, as returned by the list endpoint. A malformed id answers 404.

Body

application/json

Each list is optional. A user cannot be in both.

addUserIds
string[]

Team members added to the group; one already in it stays once.

Maximum array length: 1000
removeUserIds
string[]

Users removed from the group; one not in it is ignored.

Maximum array length: 1000

Response

Success

data
object

A group of team members.