PUT Subscriber/{subscriberId}/VirtualMembership/Locations/Configuration

Called to Create Or Update Virtual membership Location configurations for the subscriber.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subscriberId

integer

Required

Body Parameters

MembershipLocationConfigurationRequest
NameDescriptionTypeAdditional information
MembershipType

EVirtualMembershipProgram

None.

LocationConfigurations

Collection of SubscriberMembershipLocationConfiguration

None.

Request Formats

application/json, text/json

Sample:
{
  "MembershipType": 1,
  "LocationConfigurations": [
    {
      "LocationId": 1,
      "LocationName": "sample string 2",
      "IsEnabled": true
    },
    {
      "LocationId": 1,
      "LocationName": "sample string 2",
      "IsEnabled": true
    }
  ]
}

application/xml, text/xml

Sample:
<MembershipLocationConfigurationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.SubscriberApi.Dto.Requests.Subscriber">
  <LocationConfigurations xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.SubscriberApi.Dto.Models">
    <d2p1:SubscriberMembershipLocationConfiguration>
      <d2p1:IsEnabled>true</d2p1:IsEnabled>
      <d2p1:LocationId>1</d2p1:LocationId>
      <d2p1:LocationName>sample string 2</d2p1:LocationName>
    </d2p1:SubscriberMembershipLocationConfiguration>
    <d2p1:SubscriberMembershipLocationConfiguration>
      <d2p1:IsEnabled>true</d2p1:IsEnabled>
      <d2p1:LocationId>1</d2p1:LocationId>
      <d2p1:LocationName>sample string 2</d2p1:LocationName>
    </d2p1:SubscriberMembershipLocationConfiguration>
  </LocationConfigurations>
  <MembershipType>FlexMembership</MembershipType>
</MembershipLocationConfigurationRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.