POST api/Schedule/SaveOrUpdateSchedule
Request Information
URI Parameters
None.
Body Parameters
ScheduleModelName | Description | Type | Additional information |
---|---|---|---|
ScheduleID | integer |
None. |
|
ScheduleName | string |
Required |
|
ClassID | integer |
Required |
|
LocationID | integer |
Required |
|
Instructor1ID | integer |
Required |
|
Instructor2ID | integer |
None. |
|
Instructor3ID | integer |
None. |
|
Instructor4ID | integer |
None. |
|
StartDate | date |
Required |
|
ClassLength | integer |
Required |
|
SchCreatedDate | date |
None. |
|
MaxSeats | integer |
Required |
|
SchCreatedBy | string |
String length: inclusive between 0 and 20 |
|
SchUpdatedDate | date |
None. |
|
SchUpdatedBy | string |
String length: inclusive between 0 and 20 |
|
SchName | string |
String length: inclusive between 0 and 100 |
|
SchPrice | decimal number |
None. |
|
ClassLateDays | integer |
Required |
|
ClassLateFees | decimal number |
Required |
|
SchStatus | integer |
Required |
|
SessionDuration | integer |
None. |
|
Address1 | string |
None. |
|
Address2 | string |
None. |
|
City | string |
None. |
|
State | string |
None. |
|
Zip | string |
None. |
|
Ambassador | string |
None. |
|
AmbassadorPhone | string |
None. |
|
AmbassadorEmail | string |
None. |
|
Id | integer |
None. |
|
ApplyCoupon | boolean |
None. |
|
CouponCode | string |
None. |
|
DiscountPrice | decimal number |
None. |
|
DiscountFromDate | date |
None. |
|
DiscountToDate | date |
None. |
|
applySpecialPrice | boolean |
None. |
|
specialPrice | string |
None. |
|
descriptionWebsite | string |
None. |
|
specialCode | string |
None. |
|
SendEmail | boolean |
None. |
|
VideoAfterDays | integer |
None. |
|
VideoBeforeDays | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ScheduleID": 1, "ScheduleName": "sample string 2", "ClassID": 1, "LocationID": 1, "Instructor1ID": 1, "Instructor2ID": 1, "Instructor3ID": 1, "Instructor4ID": 1, "StartDate": "2025-09-06T05:52:49.995502+00:00", "ClassLength": 1, "SchCreatedDate": "2025-09-06T05:52:49.995502+00:00", "MaxSeats": 1, "SchCreatedBy": "sample string 3", "SchUpdatedDate": "2025-09-06T05:52:49.995502+00:00", "SchUpdatedBy": "sample string 4", "SchName": "sample string 5", "SchPrice": 1.0, "ClassLateDays": 1, "ClassLateFees": 1.0, "SchStatus": 1, "SessionDuration": 1, "Address1": "sample string 6", "Address2": "sample string 7", "City": "sample string 8", "State": "sample string 9", "Zip": "sample string 10", "Ambassador": "sample string 11", "AmbassadorPhone": "sample string 12", "AmbassadorEmail": "sample string 13", "Id": 14, "ApplyCoupon": true, "CouponCode": "sample string 16", "DiscountPrice": 17.0, "DiscountFromDate": "2025-09-06T05:52:50.0110658+00:00", "DiscountToDate": "2025-09-06T05:52:50.0110658+00:00", "applySpecialPrice": true, "specialPrice": "sample string 21", "descriptionWebsite": "sample string 22", "specialCode": "sample string 23", "SendEmail": true, "VideoAfterDays": 25, "VideoBeforeDays": 26 }
application/xml, text/xml
Sample:
<ScheduleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HLSClientPortal.Models"> <Address1>sample string 6</Address1> <Address2>sample string 7</Address2> <Ambassador>sample string 11</Ambassador> <AmbassadorEmail>sample string 13</AmbassadorEmail> <AmbassadorPhone>sample string 12</AmbassadorPhone> <ApplyCoupon>true</ApplyCoupon> <City>sample string 8</City> <ClassID>1</ClassID> <ClassLateDays>1</ClassLateDays> <ClassLateFees>1</ClassLateFees> <ClassLength>1</ClassLength> <CouponCode>sample string 16</CouponCode> <DiscountFromDate>2025-09-06T05:52:50.0110658+00:00</DiscountFromDate> <DiscountPrice>17</DiscountPrice> <DiscountToDate>2025-09-06T05:52:50.0110658+00:00</DiscountToDate> <Id>14</Id> <Instructor1ID>1</Instructor1ID> <Instructor2ID>1</Instructor2ID> <Instructor3ID>1</Instructor3ID> <Instructor4ID>1</Instructor4ID> <LocationID>1</LocationID> <MaxSeats>1</MaxSeats> <SchCreatedBy>sample string 3</SchCreatedBy> <SchCreatedDate>2025-09-06T05:52:49.995502+00:00</SchCreatedDate> <SchName>sample string 5</SchName> <SchPrice>1</SchPrice> <SchStatus>1</SchStatus> <SchUpdatedBy>sample string 4</SchUpdatedBy> <SchUpdatedDate>2025-09-06T05:52:49.995502+00:00</SchUpdatedDate> <ScheduleID>1</ScheduleID> <ScheduleName>sample string 2</ScheduleName> <SendEmail>true</SendEmail> <SessionDuration>1</SessionDuration> <StartDate>2025-09-06T05:52:49.995502+00:00</StartDate> <State>sample string 9</State> <VideoAfterDays>25</VideoAfterDays> <VideoBeforeDays>26</VideoBeforeDays> <Zip>sample string 10</Zip> <applySpecialPrice>true</applySpecialPrice> <descriptionWebsite>sample string 22</descriptionWebsite> <specialCode>sample string 23</specialCode> <specialPrice>sample string 21</specialPrice> </ScheduleModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />