POST api/v1/general/courses/courseLengthMapping
Request Information
URI Parameters
None.
Body Parameters
CourseLengthMappingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CourseId | integer |
None. |
|
| LengthInMinutes | integer |
Required |
|
| LengthInMinutesForSalary | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CourseId": 2,
"LengthInMinutes": 3,
"LengthInMinutesForSalary": 1
}
application/xml, text/xml
Sample:
<CourseLengthMappingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models"> <CourseId>2</CourseId> <Id>1</Id> <LengthInMinutes>3</LengthInMinutes> <LengthInMinutesForSalary>1</LengthInMinutesForSalary> </CourseLengthMappingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>