/membership/create
  • 1 Minute to read
  • Dark
    Light

/membership/create

  • Dark
    Light

Article summary

Get
/membership/create

Subscribes a contact to a group, creating a new membership. Unlike normal subscription, a notification is not sent.

Query parameters
userId
integer (int64) Required

ID of the user.

groupId
integer (int64) Required

ID of the group.

Responses
200

Example response:
{
"userId": 18076325029,
"groupId": 1800116178,
"attributes": []
}

Expand All
object
userId
integer (int64)
groupId
integer (int64)
attributes
Array of object (Attribute)
object
name
string
value
string
400

userId and groupId are mandatory, but are missing or incorrect. / User with id does not exist. / Group with id does not exist.

404

Error response: {
"errorActor": "CLIENT",
"errorCode": "INVALID_REQUEST",
"message": "Not Found"
}


Was this article helpful?