POST web/admin/fitness/sessions/save
Create (EventID == 0) or update a single fitness session. Returns { eventId }.
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:
{
"schoolID": "sample string 1",
"eventID": 2,
"classID": 3,
"subject": "sample string 4",
"eventColor": "sample string 5",
"start": "sample string 6",
"duration": 7,
"isAllDay": true,
"facilityID": "sample string 9",
"surfaceID": "sample string 10",
"description": "sample string 11",
"registrationStart": "sample string 12",
"registrationEnd": "sample string 13",
"maxParticipants": 14,
"allowWaitlist": true,
"signupRequired": true,
"allowDependent": true,
"participantInstructions": "sample string 17",
"emailInstructionsType": 18,
"hideParticipantInstructions": true,
"joinAfterPayment": true,
"paymentType": 21,
"paymentAmount": 22.1,
"acceptCoupons": true,
"acceptOnlinePayment": true,
"onlyAcceptPackages": true,
"selectedAvailablePackageIDList": "sample string 26",
"allowedMoveTime": 27,
"allowedTimeType": 28,
"leaveSessionType": 29,
"leaveSessionDate": "sample string 30",
"instructorIds": [
"sample string 1",
"sample string 2",
"sample string 3"
],
"isRepeat": true,
"repeatType": 32,
"repeatInterval": 33,
"repeatData": 34,
"repeatEndDate": "sample string 35",
"singleSignupConnected": true,
"applyScope": 37,
"curUserId": "sample string 38",
"isSSO": true,
"requestHost": "sample string 40",
"applicationPath": "sample string 41",
"secureApplicationPath": "sample string 42",
"absoluteApplicationPath": "sample string 43",
"isHttps": true,
"isMobileDevice": true,
"isElectron": true,
"isFullEmbed": true,
"clientType": 0,
"clientVersion": "sample string 48",
"clientOS": "sample string 49",
"clientBuild": "sample string 50",
"premiumAppId": "sample string 51",
"clientWidth": 52,
"clientHeight": 53,
"timezone": 54
}
application/xml, text/xml
Sample:
<SaveFitnessSessionInVO 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">53</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">52</ClientWidth>
<absoluteApplicationPath xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 43</absoluteApplicationPath>
<applicationPath xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 41</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 50</clientBuild>
<clientOS xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 49</clientOS>
<clientVersion xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 48</clientVersion>
<curUserId xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 38</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 51</premiumAppId>
<requestHost xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 40</requestHost>
<secureApplicationPath xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">sample string 42</secureApplicationPath>
<timezone xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input">54</timezone>
<AcceptCoupons>true</AcceptCoupons>
<AcceptOnlinePayment>true</AcceptOnlinePayment>
<AllowDependent>true</AllowDependent>
<AllowWaitlist>true</AllowWaitlist>
<AllowedMoveTime>27</AllowedMoveTime>
<AllowedTimeType>28</AllowedTimeType>
<ApplyScope>37</ApplyScope>
<ClassID>3</ClassID>
<Description>sample string 11</Description>
<Duration>7</Duration>
<EmailInstructionsType>18</EmailInstructionsType>
<EventColor>sample string 5</EventColor>
<EventID>2</EventID>
<FacilityID>sample string 9</FacilityID>
<HideParticipantInstructions>true</HideParticipantInstructions>
<InstructorIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
<d2p1:string>sample string 3</d2p1:string>
</InstructorIds>
<IsAllDay>true</IsAllDay>
<IsRepeat>true</IsRepeat>
<JoinAfterPayment>true</JoinAfterPayment>
<LeaveSessionDate>sample string 30</LeaveSessionDate>
<LeaveSessionType>29</LeaveSessionType>
<MaxParticipants>14</MaxParticipants>
<OnlyAcceptPackages>true</OnlyAcceptPackages>
<ParticipantInstructions>sample string 17</ParticipantInstructions>
<PaymentAmount>22.1</PaymentAmount>
<PaymentType>21</PaymentType>
<RegistrationEnd>sample string 13</RegistrationEnd>
<RegistrationStart>sample string 12</RegistrationStart>
<RepeatData>34</RepeatData>
<RepeatEndDate>sample string 35</RepeatEndDate>
<RepeatInterval>33</RepeatInterval>
<RepeatType>32</RepeatType>
<SchoolID>sample string 1</SchoolID>
<SelectedAvailablePackageIDList>sample string 26</SelectedAvailablePackageIDList>
<SignupRequired>true</SignupRequired>
<SingleSignupConnected>true</SingleSignupConnected>
<Start>sample string 6</Start>
<Subject>sample string 4</Subject>
<SurfaceID>sample string 10</SurfaceID>
</SaveFitnessSessionInVO>
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": "461a6f8d-a1e8-4602-9899-86366e4980b6",
"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>461a6f8d-a1e8-4602-9899-86366e4980b6</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.