Skip to main content
PATCH
Update User Group
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 field left out keeps its value; send at least one. userIds replaces the whole member list. To add or remove a few members without sending the whole list, use Edit User Group Members.

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

At least one of name and userIds. A field left out keeps its value.

name
string

Unique in the team, whatever its case. Trimmed, with its inner spaces collapsed.

Required string length: 1 - 60
userIds
string[]

The whole member list, replacing the previous one; [] empties the group.

Maximum array length: 1000

Response

Success

data
object

A group of team members.