POST api/memberships?multiple={multiple}
Creates a collection of contact group membership with the given information. This is an all or nothing enpoint meaning if one membership is invalid none will be added.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| multiple |
Any value is valid eg. 1, true, yes, etc. |
string |
Required |
Body Parameters
Membership data of new membership
Collection of MembershipNewDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Group |
ID of parent group |
integer |
Required |
| Contact |
ID of parent contact |
integer |
Required |
Request Formats
application/json, text/json
Sample:
[
{
"Group": 1,
"Contact": 2
},
{
"Group": 1,
"Contact": 2
}
]
Response Information
Resource Description
Summary of new membership
Collection of MembershipDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
Membership ID |
integer |
None. |
| OwnerID |
ID of account owning the contact group membership |
string |
None. |
| Created |
Timestamp for membership creation |
date |
None. |
| Group |
ID of parent group |
integer |
Required |
| Contact |
ID of parent contact |
integer |
Required |
Response Formats
application/json, text/json
Sample:
[
{
"ID": 1,
"OwnerID": "sample string 2",
"Created": "2025-12-16T03:28:19.474371+00:00",
"Group": 3,
"Contact": 4
},
{
"ID": 1,
"OwnerID": "sample string 2",
"Created": "2025-12-16T03:28:19.474371+00:00",
"Group": 3,
"Contact": 4
}
]