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": "c5f42443-93b8-40e1-9d0b-a72c09d69cc5", "MemberTypeId": "1474d942-3080-442f-a481-a39a06da1574", "SignupDate": "2025-04-09T07:10:27.9073724+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>c5f42443-93b8-40e1-9d0b-a72c09d69cc5</MemberId> <MemberTypeId>1474d942-3080-442f-a481-a39a06da1574</MemberTypeId> <SignupDate>2025-04-09T07:10:27.9073724+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": "02f4d596-3f67-4890-b60b-1d23edac24df", "Name": "sample string 2", "MemberTypeId": "bb58e8c8-b70d-45b3-a581-4cc2d1c38beb", "SignupDate": "2025-04-09T07:10:27.9073724+02:00", "ResignedDate": "2025-04-09T07:10:27.9073724+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>bb58e8c8-b70d-45b3-a581-4cc2d1c38beb</MemberTypeId> <MembershipId>02f4d596-3f67-4890-b60b-1d23edac24df</MembershipId> <Name>sample string 2</Name> <ResignedDate>2025-04-09T07:10:27.9073724+02:00</ResignedDate> <SignupDate>2025-04-09T07:10:27.9073724+02:00</SignupDate> </MembershipDto>