POST web/admin/fitness/classes/save
Create or update a fitness class (admin authoring). ClassID == 0 creates.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| inVO | No documentation available. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"classID": 1,
"schoolID": "sample string 2",
"classColor": "sample string 3",
"name": "sample string 4",
"duration": 5,
"facilityID": "sample string 6",
"surfaceID": "sample string 7",
"description": "sample string 8",
"inactive": true,
"paymentRequired": true,
"paymentAmount": "sample string 11",
"participantInstructions": "sample string 12",
"acceptCoupons": true,
"acceptOnlinePayment": true,
"emailInstructionsType": 15,
"hideParticipantInstructions": true,
"classType": 17,
"logoPath": "sample string 18",
"bannerPath": "sample string 19",
"selectedAvailablePackageIDList": "sample string 20",
"onlyAcceptPackages": true,
"enableReservation": 1,
"restrictionJoinSessionsCount": 22,
"eventTagId": "sample string 23",
"eventTagName": "sample string 24",
"curUserId": "sample string 25",
"isSSO": true,
"requestHost": "sample string 27",
"applicationPath": "sample string 28",
"secureApplicationPath": "sample string 29",
"absoluteApplicationPath": "sample string 30",
"isHttps": true,
"isMobileDevice": true,
"isElectron": true,
"isFullEmbed": true,
"clientType": 0,
"clientVersion": "sample string 35",
"clientOS": "sample string 36",
"clientBuild": "sample string 37",
"premiumAppId": "sample string 38",
"clientWidth": 39,
"clientHeight": 40,
"timezone": 41
}
application/xml, text/xml
Sample:
<SaveFitnessClassInVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input.Fitness"> <ClientHeight xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">40</ClientHeight> <ClientType xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">Site</ClientType> <ClientWidth xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">39</ClientWidth> <absoluteApplicationPath xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 30</absoluteApplicationPath> <applicationPath xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 28</applicationPath> <cachedKey xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 1</cachedKey> <clientBuild xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 37</clientBuild> <clientOS xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 36</clientOS> <clientVersion xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 35</clientVersion> <curUserId xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 25</curUserId> <isElectron xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">true</isElectron> <isFullEmbed xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">true</isFullEmbed> <isHttps xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">true</isHttps> <isMobileDevice xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">true</isMobileDevice> <isSSO xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">true</isSSO> <premiumAppId xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 38</premiumAppId> <requestHost xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 27</requestHost> <secureApplicationPath xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 29</secureApplicationPath> <timezone xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">41</timezone> <AcceptCoupons>true</AcceptCoupons> <AcceptOnlinePayment>true</AcceptOnlinePayment> <BannerPath>sample string 19</BannerPath> <ClassColor>sample string 3</ClassColor> <ClassID>1</ClassID> <ClassType>17</ClassType> <Description>sample string 8</Description> <Duration>5</Duration> <EmailInstructionsType>15</EmailInstructionsType> <EnableReservation>1</EnableReservation> <EventTagId>sample string 23</EventTagId> <EventTagName>sample string 24</EventTagName> <FacilityID>sample string 6</FacilityID> <HideParticipantInstructions>true</HideParticipantInstructions> <Inactive>true</Inactive> <LogoPath>sample string 18</LogoPath> <Name>sample string 4</Name> <OnlyAcceptPackages>true</OnlyAcceptPackages> <ParticipantInstructions>sample string 12</ParticipantInstructions> <PaymentAmount>sample string 11</PaymentAmount> <PaymentRequired>true</PaymentRequired> <RestrictionJoinSessionsCount>22</RestrictionJoinSessionsCount> <SchoolID>sample string 2</SchoolID> <SelectedAvailablePackageIDList>sample string 20</SelectedAvailablePackageIDList> <SurfaceID>sample string 7</SurfaceID> </SaveFitnessClassInVO>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="cachedKey" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
No documentation available.
Response body formats
application/json, text/json
Sample:
{
"isDone": true,
"code": 0,
"message": "sample string 2",
"data": {},
"cachedKey": "sample string 4",
"correlationId": "86065f01-279b-41b0-a7f6-38382ccc7a80",
"jwtTokenForSPA": "sample string 6",
"jwtTokenIndexForSPA": 1
}
application/xml, text/xml
Sample:
<ResultOutVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common"> <CachedKey>sample string 4</CachedKey> <Code>None</Code> <CorrelationId>86065f01-279b-41b0-a7f6-38382ccc7a80</CorrelationId> <Data /> <IsDone>true</IsDone> <JwtTokenForSPA>sample string 6</JwtTokenForSPA> <JwtTokenIndexForSPA>1</JwtTokenIndexForSPA> <Message>sample string 2</Message> </ResultOutVO>
multipart/form-data
Sample:
Sample not available.