PUT api/Memberships

Update membership

Request Information

URI Parameters

None.

Body Parameters

MembershipUpdateDto
NameDescriptionTypeAdditional information
MembershipId

ID of the membership (Guid)

globally unique identifier

Required

SignupDate

The date the member signed up to the membership

date

Required

Request Formats

application/json, text/json

Sample:
{
  "MembershipId": "cd9cff3d-9f66-446b-9ba4-ce748c7e14d4",
  "SignupDate": "2024-11-21T09:51:53.0270821+01:00"
}

application/xml, text/xml

Sample:
<MembershipUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <MembershipId>cd9cff3d-9f66-446b-9ba4-ce748c7e14d4</MembershipId>
  <SignupDate>2024-11-21T09:51:53.0270821+01:00</SignupDate>
</MembershipUpdateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MembershipDto
NameDescriptionTypeAdditional 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": "350e0fb0-1b44-40be-ab62-3efaf559d064",
  "Name": "sample string 2",
  "MemberTypeId": "449f0f13-5bf6-452e-afd8-48aa05f62176",
  "SignupDate": "2024-11-21T09:51:53.0270821+01:00",
  "ResignedDate": "2024-11-21T09:51:53.0270821+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>449f0f13-5bf6-452e-afd8-48aa05f62176</MemberTypeId>
  <MembershipId>350e0fb0-1b44-40be-ab62-3efaf559d064</MembershipId>
  <Name>sample string 2</Name>
  <ResignedDate>2024-11-21T09:51:53.0270821+01:00</ResignedDate>
  <SignupDate>2024-11-21T09:51:53.0270821+01:00</SignupDate>
</MembershipDto>