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

NameDescriptionTypeAdditional information
multiple

Any value is valid eg. 1, true, yes, etc.

string

Required

Body Parameters

Membership data of new membership

Collection of MembershipNewDTO
NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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": "2019-08-19T15:32:12.6434716+00:00",
    "Group": 3,
    "Contact": 4
  },
  {
    "ID": 1,
    "OwnerID": "sample string 2",
    "Created": "2019-08-19T15:32:12.6434716+00:00",
    "Group": 3,
    "Contact": 4
  }
]