POST Subscriber/{subscriberId}/DynamicPricing/Organization
Add an organization
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
subscriberId | integer |
Required |
Body Parameters
UpdateDynamicPricingOrganizationName | Description | Type | Additional information |
---|---|---|---|
organization | DynamicPricingOrganization |
None. |
|
error | DynamicPricingError |
None. |
Request Formats
application/json, text/json
Sample:
{ "organization": { "id": 1, "mb_site_id": 1, "mb_accepted_dp_tos": true, "dynamic_pricing_enabled": true, "limit_openings": true, "dp_openings": 1, "available_n_hours_before": 4, "floor_price": 1.0, "drop_in_price": 1.0, "ceiling_price": 1.0, "studios": [ { "id": 1, "name": "sample string 1", "mb_site_id": 2, "mb_location_id": 3, "floor_price": 1.0, "drop_in_price": 1.0, "ceiling_price": 1.0, "limit_openings": true, "dp_openings": 1, "available_n_hours_before": 5, "dynamic_pricing_enabled": true, "use_organization_values": true }, { "id": 1, "name": "sample string 1", "mb_site_id": 2, "mb_location_id": 3, "floor_price": 1.0, "drop_in_price": 1.0, "ceiling_price": 1.0, "limit_openings": true, "dp_openings": 1, "available_n_hours_before": 5, "dynamic_pricing_enabled": true, "use_organization_values": true } ], "studios_attributes": [ { "id": 1, "name": "sample string 1", "mb_site_id": 2, "mb_location_id": 3, "floor_price": 1.0, "drop_in_price": 1.0, "ceiling_price": 1.0, "limit_openings": true, "dp_openings": 1, "available_n_hours_before": 5, "dynamic_pricing_enabled": true, "use_organization_values": true }, { "id": 1, "name": "sample string 1", "mb_site_id": 2, "mb_location_id": 3, "floor_price": 1.0, "drop_in_price": 1.0, "ceiling_price": 1.0, "limit_openings": true, "dp_openings": 1, "available_n_hours_before": 5, "dynamic_pricing_enabled": true, "use_organization_values": true } ], "error": { "error_code": "sample string 1", "details": "sample string 2", "errors": { "sample string 1": [ "sample string 1", "sample string 2" ], "sample string 2": [ "sample string 1", "sample string 2" ] }, "status": 3 } }, "error": { "error_code": "sample string 1", "details": "sample string 2", "errors": { "sample string 1": [ "sample string 1", "sample string 2" ], "sample string 2": [ "sample string 1", "sample string 2" ] }, "status": 3 } }
application/xml, text/xml
Sample:
<UpdateDynamicPricingOrganization xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Subscriber.Models.DynamicPricing"> <Error> <Details>sample string 2</Details> <ErrorCode>sample string 1</ErrorCode> <Errors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d3p1:Key>sample string 1</d3p1:Key> <d3p1:Value> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </d3p1:Value> </d3p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d3p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d3p1:Key>sample string 2</d3p1:Key> <d3p1:Value> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </d3p1:Value> </d3p1:KeyValueOfstringArrayOfstringty7Ep6D1> </Errors> <Status>3</Status> </Error> <Organization> <AvailableNHoursBefore>4</AvailableNHoursBefore> <CeilingPrice>1</CeilingPrice> <DpOpenings>1</DpOpenings> <DropInPrice>1</DropInPrice> <DynamicPricingEnabled>true</DynamicPricingEnabled> <Error> <Details>sample string 2</Details> <ErrorCode>sample string 1</ErrorCode> <Errors xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Value> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d4p1:Value> </d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d4p1:Key>sample string 2</d4p1:Key> <d4p1:Value> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </d4p1:Value> </d4p1:KeyValueOfstringArrayOfstringty7Ep6D1> </Errors> <Status>3</Status> </Error> <FloorPrice>1</FloorPrice> <Id>1</Id> <LimitOpenings>true</LimitOpenings> <MbAcceptedDpTos>true</MbAcceptedDpTos> <MbSiteId>1</MbSiteId> <Studios> <DynamicPricingStudio> <AvailableNHoursBefore>5</AvailableNHoursBefore> <CeilingPrice>1</CeilingPrice> <DpOpenings>1</DpOpenings> <DropInPrice>1</DropInPrice> <DynamicPricingEnabled>true</DynamicPricingEnabled> <FloorPrice>1</FloorPrice> <Id>1</Id> <LimitOpenings>true</LimitOpenings> <MbLocationId>3</MbLocationId> <MbSiteId>2</MbSiteId> <Name>sample string 1</Name> <UseOrganizationValues>true</UseOrganizationValues> </DynamicPricingStudio> <DynamicPricingStudio> <AvailableNHoursBefore>5</AvailableNHoursBefore> <CeilingPrice>1</CeilingPrice> <DpOpenings>1</DpOpenings> <DropInPrice>1</DropInPrice> <DynamicPricingEnabled>true</DynamicPricingEnabled> <FloorPrice>1</FloorPrice> <Id>1</Id> <LimitOpenings>true</LimitOpenings> <MbLocationId>3</MbLocationId> <MbSiteId>2</MbSiteId> <Name>sample string 1</Name> <UseOrganizationValues>true</UseOrganizationValues> </DynamicPricingStudio> </Studios> <StudiosAttributes> <DynamicPricingStudio> <AvailableNHoursBefore>5</AvailableNHoursBefore> <CeilingPrice>1</CeilingPrice> <DpOpenings>1</DpOpenings> <DropInPrice>1</DropInPrice> <DynamicPricingEnabled>true</DynamicPricingEnabled> <FloorPrice>1</FloorPrice> <Id>1</Id> <LimitOpenings>true</LimitOpenings> <MbLocationId>3</MbLocationId> <MbSiteId>2</MbSiteId> <Name>sample string 1</Name> <UseOrganizationValues>true</UseOrganizationValues> </DynamicPricingStudio> <DynamicPricingStudio> <AvailableNHoursBefore>5</AvailableNHoursBefore> <CeilingPrice>1</CeilingPrice> <DpOpenings>1</DpOpenings> <DropInPrice>1</DropInPrice> <DynamicPricingEnabled>true</DynamicPricingEnabled> <FloorPrice>1</FloorPrice> <Id>1</Id> <LimitOpenings>true</LimitOpenings> <MbLocationId>3</MbLocationId> <MbSiteId>2</MbSiteId> <Name>sample string 1</Name> <UseOrganizationValues>true</UseOrganizationValues> </DynamicPricingStudio> </StudiosAttributes> </Organization> </UpdateDynamicPricingOrganization>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.