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": "715bb10b-e101-427f-b191-860294f85215",
"MemberTypeId": "8e7f4dbb-b152-436b-86b0-493e4ddc6a3e",
"SignupDate": "2026-11-04T14:29:08.0532442+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>715bb10b-e101-427f-b191-860294f85215</MemberId> <MemberTypeId>8e7f4dbb-b152-436b-86b0-493e4ddc6a3e</MemberTypeId> <SignupDate>2026-11-04T14:29:08.0532442+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": "f4a25bee-af9b-45b8-b3d6-e4aa7df6d3ea",
"Name": "sample string 2",
"MemberTypeId": "f56d583a-bb5c-4a79-bce9-81f4f56da217",
"SignupDate": "2026-11-04T14:29:08.0532442+01:00",
"ResignedDate": "2026-11-04T14:29:08.0532442+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>f56d583a-bb5c-4a79-bce9-81f4f56da217</MemberTypeId> <MembershipId>f4a25bee-af9b-45b8-b3d6-e4aa7df6d3ea</MembershipId> <Name>sample string 2</Name> <ResignedDate>2026-11-04T14:29:08.0532442+01:00</ResignedDate> <SignupDate>2026-11-04T14:29:08.0532442+01:00</SignupDate> </MembershipDto>
