POST api/Memberships
Create membership
Request Information
URI Parameters
None.
Body Parameters
MembershipCreateDto| Name | Description | Type | Additional 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": "072fb2d2-c51b-4565-821a-02680b79a91c",
"MemberTypeId": "c18d18c5-fce7-4c9e-af70-2c4100fcacd2",
"SignupDate": "2026-06-21T21:16:00.8965965+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>072fb2d2-c51b-4565-821a-02680b79a91c</MemberId> <MemberTypeId>c18d18c5-fce7-4c9e-af70-2c4100fcacd2</MemberTypeId> <SignupDate>2026-06-21T21:16:00.8965965+02:00</SignupDate> </MembershipCreateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MembershipDto| Name | Description | Type | Additional 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": "84f9475c-26b6-42ca-9c2e-5c88fbc99691",
"Name": "sample string 2",
"MemberTypeId": "8a8d0ef9-6f33-43d9-9bf1-9ae3fbf331af",
"SignupDate": "2026-06-21T21:16:00.8965965+02:00",
"ResignedDate": "2026-06-21T21:16:00.8965965+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>8a8d0ef9-6f33-43d9-9bf1-9ae3fbf331af</MemberTypeId> <MembershipId>84f9475c-26b6-42ca-9c2e-5c88fbc99691</MembershipId> <Name>sample string 2</Name> <ResignedDate>2026-06-21T21:16:00.8965965+02:00</ResignedDate> <SignupDate>2026-06-21T21:16:00.8965965+02:00</SignupDate> </MembershipDto>
