POST api/AddOrUpdateGroup
Request Information
URI Parameters
None.
Body Parameters
Group| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| GroupCourse | string |
None. |
|
| Name | string |
None. |
|
| NameLT | string |
None. |
|
| CourseId | integer |
None. |
|
| LockCourseContent | boolean |
None. |
|
| AnswerExam | boolean |
None. |
|
| Contents | Collection of Content |
None. |
|
| OrderNumber | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"GroupCourse": "sample string 2",
"Name": "sample string 3",
"NameLT": "sample string 4",
"CourseId": 1,
"LockCourseContent": true,
"AnswerExam": true,
"Contents": [
{
"Id": 1,
"Name": "sample string 2",
"NameLT": "sample string 3",
"Path": "sample string 4",
"GroupId": 1,
"Duration": 1.1,
"ContentTypeId": 1,
"IsFree": true,
"VideoUri": "sample string 5",
"ProviderType": "sample string 6",
"VimeoAccountType": "sample string 7",
"YoutubeLink": "sample string 8",
"OrderNumber": 1,
"ViewsCount": 1,
"IsViewed": 9,
"StudentContent": {
"Id": 1,
"ContentId": 2,
"StudentId": 3
},
"VideoLink": "sample string 10"
},
{
"Id": 1,
"Name": "sample string 2",
"NameLT": "sample string 3",
"Path": "sample string 4",
"GroupId": 1,
"Duration": 1.1,
"ContentTypeId": 1,
"IsFree": true,
"VideoUri": "sample string 5",
"ProviderType": "sample string 6",
"VimeoAccountType": "sample string 7",
"YoutubeLink": "sample string 8",
"OrderNumber": 1,
"ViewsCount": 1,
"IsViewed": 9,
"StudentContent": {
"Id": 1,
"ContentId": 2,
"StudentId": 3
},
"VideoLink": "sample string 10"
}
],
"OrderNumber": 7
}
application/xml, text/xml
Sample:
<Group xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.Entities">
<AnswerExam>true</AnswerExam>
<Contents>
<Content>
<ContentTypeId>1</ContentTypeId>
<Duration>1.1</Duration>
<GroupId>1</GroupId>
<Id>1</Id>
<IsFree>true</IsFree>
<IsViewed>9</IsViewed>
<Name>sample string 2</Name>
<NameLT>sample string 3</NameLT>
<OrderNumber>1</OrderNumber>
<Path>sample string 4</Path>
<ProviderType>sample string 6</ProviderType>
<StudentContent>
<ContentId>2</ContentId>
<Id>1</Id>
<StudentId>3</StudentId>
</StudentContent>
<VideoLink>sample string 10</VideoLink>
<VideoUri>sample string 5</VideoUri>
<ViewsCount>1</ViewsCount>
<VimeoAccountType>sample string 7</VimeoAccountType>
<YoutubeLink>sample string 8</YoutubeLink>
</Content>
<Content>
<ContentTypeId>1</ContentTypeId>
<Duration>1.1</Duration>
<GroupId>1</GroupId>
<Id>1</Id>
<IsFree>true</IsFree>
<IsViewed>9</IsViewed>
<Name>sample string 2</Name>
<NameLT>sample string 3</NameLT>
<OrderNumber>1</OrderNumber>
<Path>sample string 4</Path>
<ProviderType>sample string 6</ProviderType>
<StudentContent>
<ContentId>2</ContentId>
<Id>1</Id>
<StudentId>3</StudentId>
</StudentContent>
<VideoLink>sample string 10</VideoLink>
<VideoUri>sample string 5</VideoUri>
<ViewsCount>1</ViewsCount>
<VimeoAccountType>sample string 7</VimeoAccountType>
<YoutubeLink>sample string 8</YoutubeLink>
</Content>
</Contents>
<CourseId>1</CourseId>
<GroupCourse>sample string 2</GroupCourse>
<Id>1</Id>
<LockCourseContent>true</LockCourseContent>
<Name>sample string 3</Name>
<NameLT>sample string 4</NameLT>
<OrderNumber>7</OrderNumber>
</Group>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |