POST api/memberships
Creates a new contact group membership with the given information
Request Information
URI Parameters
None.
Body Parameters
Membership data of new membership
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
}
Response Information
Resource Description
Summary of new membership
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:15.8492447+00:00",
"Group": 3,
"Contact": 4
}