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": "d8f5e1f4-7152-47aa-9815-67739542985b",
  "SignupDate": "2021-10-15T14:45:04.8394426+02: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>d8f5e1f4-7152-47aa-9815-67739542985b</MembershipId>
  <SignupDate>2021-10-15T14:45:04.8394426+02: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": "c36d7c60-e3dd-4b6b-a530-ba97b9fb5b5c",
  "Name": "sample string 2",
  "MemberTypeId": "7eee0d4c-bdf8-492f-8062-8b72306233c1",
  "SignupDate": "2021-10-15T14:45:04.8394426+02:00",
  "ResignedDate": "2021-10-15T14:45:04.8394426+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>7eee0d4c-bdf8-492f-8062-8b72306233c1</MemberTypeId>
  <MembershipId>c36d7c60-e3dd-4b6b-a530-ba97b9fb5b5c</MembershipId>
  <Name>sample string 2</Name>
  <ResignedDate>2021-10-15T14:45:04.8394426+02:00</ResignedDate>
  <SignupDate>2021-10-15T14:45:04.8394426+02:00</SignupDate>
</MembershipDto>