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": "867ed9ad-dd48-4801-9f0d-d207e55bb893", "MemberTypeId": "bcd71681-c19d-48cf-8626-484e0fc45e74", "SignupDate": "2024-04-20T08:17:58.5564682+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>867ed9ad-dd48-4801-9f0d-d207e55bb893</MemberId> <MemberTypeId>bcd71681-c19d-48cf-8626-484e0fc45e74</MemberTypeId> <SignupDate>2024-04-20T08:17:58.5564682+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": "1ea9fa1e-3cac-4c44-ad2d-ff00062a59fb", "Name": "sample string 2", "MemberTypeId": "28035904-f016-40d7-9ca8-7b1ae373c8f3", "SignupDate": "2024-04-20T08:17:58.5720833+02:00", "ResignedDate": "2024-04-20T08:17:58.5720833+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>28035904-f016-40d7-9ca8-7b1ae373c8f3</MemberTypeId> <MembershipId>1ea9fa1e-3cac-4c44-ad2d-ff00062a59fb</MembershipId> <Name>sample string 2</Name> <ResignedDate>2024-04-20T08:17:58.5720833+02:00</ResignedDate> <SignupDate>2024-04-20T08:17:58.5720833+02:00</SignupDate> </MembershipDto>