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": "c4010e67-9ee0-4a72-9108-eb92fbd7f0a9",
"MemberTypeId": "e5e3acad-e468-47e3-a860-1753f2f08ba5",
"SignupDate": "2026-02-04T02:32:23.7823792+01: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>c4010e67-9ee0-4a72-9108-eb92fbd7f0a9</MemberId> <MemberTypeId>e5e3acad-e468-47e3-a860-1753f2f08ba5</MemberTypeId> <SignupDate>2026-02-04T02:32:23.7823792+01: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": "fe61685e-4f90-4795-b52b-49debb937b31",
"Name": "sample string 2",
"MemberTypeId": "b4b670b8-1624-41a4-94e4-c779cf8d26ca",
"SignupDate": "2026-02-04T02:32:23.7823792+01:00",
"ResignedDate": "2026-02-04T02:32:23.7823792+01: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>b4b670b8-1624-41a4-94e4-c779cf8d26ca</MemberTypeId> <MembershipId>fe61685e-4f90-4795-b52b-49debb937b31</MembershipId> <Name>sample string 2</Name> <ResignedDate>2026-02-04T02:32:23.7823792+01:00</ResignedDate> <SignupDate>2026-02-04T02:32:23.7823792+01:00</SignupDate> </MembershipDto>
