POST api/Memberships

Create membership

Request Information

URI Parameters

None.

Body Parameters

MembershipCreateDto
NameDescriptionTypeAdditional information
MemberId

ID of the member (Guid)

globally unique identifier

Required

MemberTypeId

ID of the MemberType (Guid)

globally unique identifier

Required

SignupDate

The date the member signed up to the membership

date

Required

Request Formats

application/json, text/json

Sample:
{
  "MemberId": "e7a4cd46-97a6-4c44-9c0f-1901ac8011c1",
  "MemberTypeId": "ef73423a-d6c8-4223-b602-2932dcaa6a93",
  "SignupDate": "2021-06-17T20:03:01.2184512+02:00"
}

application/xml, text/xml

Sample:
<MembershipCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <MemberId>e7a4cd46-97a6-4c44-9c0f-1901ac8011c1</MemberId>
  <MemberTypeId>ef73423a-d6c8-4223-b602-2932dcaa6a93</MemberTypeId>
  <SignupDate>2021-06-17T20:03:01.2184512+02:00</SignupDate>
</MembershipCreateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MembershipDto
NameDescriptionTypeAdditional information
MembershipId

ID of the membership (Guid)

globally unique identifier

None.

Name

Name of the membership

string

None.

MemberTypeId

ID of the membership type (Guid)

globally unique identifier

None.

SignupDate

The date the member signed up to the membership

date

None.

ResignedDate

The date the member resigned from the membership

date

None.

Response Formats

application/json, text/json

Sample:
{
  "MembershipId": "284d943c-8abd-46c7-8322-e87cdce05b71",
  "Name": "sample string 2",
  "MemberTypeId": "a64cf8ee-3609-45e0-adc6-b685b03e3218",
  "SignupDate": "2021-06-17T20:03:01.2184512+02:00",
  "ResignedDate": "2021-06-17T20:03:01.2184512+02:00"
}

application/xml, text/xml

Sample:
<MembershipDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <MemberTypeId>a64cf8ee-3609-45e0-adc6-b685b03e3218</MemberTypeId>
  <MembershipId>284d943c-8abd-46c7-8322-e87cdce05b71</MembershipId>
  <Name>sample string 2</Name>
  <ResignedDate>2021-06-17T20:03:01.2184512+02:00</ResignedDate>
  <SignupDate>2021-06-17T20:03:01.2184512+02:00</SignupDate>
</MembershipDto>