POST api/Memberships
Create membership
Request Information
URI Parameters
None.
Body Parameters
MembershipCreateDtoName | 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": "6fbce05a-bf20-45d7-8549-068b90f5c28e", "MemberTypeId": "58090429-7245-4f14-b3db-19d784cb88fb", "SignupDate": "2025-06-07T09:37:03.2691084+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>6fbce05a-bf20-45d7-8549-068b90f5c28e</MemberId> <MemberTypeId>58090429-7245-4f14-b3db-19d784cb88fb</MemberTypeId> <SignupDate>2025-06-07T09:37:03.2691084+02:00</SignupDate> </MembershipCreateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MembershipDtoName | 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": "7a624519-9b22-4d1f-9afd-41ecc040cbb5", "Name": "sample string 2", "MemberTypeId": "a2841c77-1abd-4d41-abd9-10f5fbc8fe90", "SignupDate": "2025-06-07T09:37:03.2691084+02:00", "ResignedDate": "2025-06-07T09:37:03.2691084+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>a2841c77-1abd-4d41-abd9-10f5fbc8fe90</MemberTypeId> <MembershipId>7a624519-9b22-4d1f-9afd-41ecc040cbb5</MembershipId> <Name>sample string 2</Name> <ResignedDate>2025-06-07T09:37:03.2691084+02:00</ResignedDate> <SignupDate>2025-06-07T09:37:03.2691084+02:00</SignupDate> </MembershipDto>