POST Course/AddCourse
Request Information
URI Parameters
None.
Body Parameters
CourseDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| CourseName | string |
None. |
|
| ApplicableObject | integer |
None. |
|
| CustomerNo | string |
None. |
|
| PcImg | string |
None. |
|
| MobileImg | string |
None. |
|
| CourseDetailImg | string |
None. |
|
| Timelength | integer |
None. |
|
| Price | decimal number |
None. |
|
| Expertid | integer |
None. |
|
| CreateId | integer |
None. |
|
| CourseTypes | Collection of integer |
None. |
|
| FirstTypeIds | Collection of integer |
None. |
|
| Source | integer |
None. |
|
| ProfessionalLevel | integer |
None. |
|
| Remark | string |
None. |
|
| SourceCompany | string |
None. |
|
| CourseExtend | CourseExtendDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"CourseName": "sample string 1",
"ApplicableObject": 1,
"CustomerNo": "sample string 2",
"PcImg": "sample string 3",
"MobileImg": "sample string 4",
"CourseDetailImg": "sample string 5",
"Timelength": 6,
"Price": 7.0,
"Expertid": 8,
"CreateId": 9,
"CourseTypes": [
1,
2
],
"FirstTypeIds": [
1,
2
],
"Source": 10,
"ProfessionalLevel": 1,
"Remark": "sample string 11",
"SourceCompany": "sample string 12",
"CourseExtend": {
"Description": "sample string 1",
"Edescription": "sample string 2"
}
}
application/xml, text/xml
Sample:
<CourseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zs.Ylx.Resources.Entity.BackgroundDTO">
<ApplicableObject>1</ApplicableObject>
<CourseDetailImg>sample string 5</CourseDetailImg>
<CourseExtend>
<Description>sample string 1</Description>
<Edescription>sample string 2</Edescription>
</CourseExtend>
<CourseName>sample string 1</CourseName>
<CourseTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</CourseTypes>
<CreateId>9</CreateId>
<CustomerNo>sample string 2</CustomerNo>
<Expertid>8</Expertid>
<FirstTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</FirstTypeIds>
<MobileImg>sample string 4</MobileImg>
<PcImg>sample string 3</PcImg>
<Price>7</Price>
<ProfessionalLevel>1</ProfessionalLevel>
<Remark>sample string 11</Remark>
<Source>10</Source>
<SourceCompany>sample string 12</SourceCompany>
<Timelength>6</Timelength>
</CourseDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.