POST api/LMSApi/EnrollPost
Request Information
URI Parameters
None.
Body Parameters
Enrollment| Name | Description | Type | Additional information |
|---|---|---|---|
| CourseId | globally unique identifier |
None. |
|
| GroupId | globally unique identifier |
None. |
|
| EnrollmentId | globally unique identifier |
None. |
|
| StudentId | globally unique identifier |
None. |
|
| StudentKey | string |
None. |
|
| GroupName | string |
None. |
|
| Name | string |
None. |
|
| Surname | string |
None. |
|
| Username | string |
None. |
|
| IdentityNo | string |
None. |
|
| UserPass | string |
None. |
|
| string |
None. |
||
| Gender | string |
None. |
|
| BirthDate | date |
None. |
|
| StudentNo | string |
None. |
|
| EnrollKey | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CourseId": "459408b4-4671-4c7b-a414-803a6d9fab2a",
"GroupId": "e68d4ce6-2777-41bc-b78e-f4e47913c77b",
"EnrollmentId": "1ea70efe-ed09-4584-9f52-a85d5944c064",
"StudentId": "0154296f-3f28-4e96-98fc-3f0740ea85ac",
"StudentKey": "sample string 4",
"GroupName": "sample string 5",
"Name": "sample string 6",
"Surname": "sample string 7",
"Username": "sample string 8",
"IdentityNo": "sample string 9",
"UserPass": "sample string 10",
"Email": "sample string 11",
"Gender": "sample string 12",
"BirthDate": "2025-12-16T06:10:57.5395003+03:00",
"StudentNo": "sample string 13",
"EnrollKey": "sample string 14"
}
text/html
Sample:
{"CourseId":"459408b4-4671-4c7b-a414-803a6d9fab2a","GroupId":"e68d4ce6-2777-41bc-b78e-f4e47913c77b","EnrollmentId":"1ea70efe-ed09-4584-9f52-a85d5944c064","StudentId":"0154296f-3f28-4e96-98fc-3f0740ea85ac","StudentKey":"sample string 4","GroupName":"sample string 5","Name":"sample string 6","Surname":"sample string 7","Username":"sample string 8","IdentityNo":"sample string 9","UserPass":"sample string 10","Email":"sample string 11","Gender":"sample string 12","BirthDate":"2025-12-16T06:10:57.5395003+03:00","StudentNo":"sample string 13","EnrollKey":"sample string 14"}
application/xml, text/xml
Sample:
<Enrollment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WheLMS.WebApi.Models"> <BirthDate>2025-12-16T06:10:57.5395003+03:00</BirthDate> <CourseId>459408b4-4671-4c7b-a414-803a6d9fab2a</CourseId> <Email>sample string 11</Email> <EnrollKey>sample string 14</EnrollKey> <EnrollmentId>1ea70efe-ed09-4584-9f52-a85d5944c064</EnrollmentId> <Gender>sample string 12</Gender> <GroupId>e68d4ce6-2777-41bc-b78e-f4e47913c77b</GroupId> <GroupName>sample string 5</GroupName> <IdentityNo>sample string 9</IdentityNo> <Name>sample string 6</Name> <StudentId>0154296f-3f28-4e96-98fc-3f0740ea85ac</StudentId> <StudentKey>sample string 4</StudentKey> <StudentNo>sample string 13</StudentNo> <Surname>sample string 7</Surname> <UserPass>sample string 10</UserPass> <Username>sample string 8</Username> </Enrollment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EnrollResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Enrollled | boolean |
None. |
|
| Description | string |
None. |
|
| Hata | Exception |
None. |
|
| CourseId | globally unique identifier |
None. |
|
| GroupId | globally unique identifier |
None. |
|
| GroupStatus | integer |
None. |
|
| StudentId | globally unique identifier |
None. |
|
| StudentStatus | integer |
None. |
|
| EnrollmentId | globally unique identifier |
None. |
|
| EnrollStatus | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Enrollled": true,
"Description": "sample string 2",
"Hata": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
},
"CourseId": "956caa3a-059e-4fb1-b475-0bdb9e0e78a2",
"GroupId": "2beb1380-735d-47e2-aad9-a1be8ecd0629",
"GroupStatus": 1,
"StudentId": "a67688c2-1b72-4852-8dfb-e7b8667f19f1",
"StudentStatus": 1,
"EnrollmentId": "c35301ba-f5ac-439d-be22-8370d4d5bb66",
"EnrollStatus": 1
}
text/html
Sample:
{"Enrollled":true,"Description":"sample string 2","Hata":{"ClassName":"System.Exception","Message":null,"Data":null,"InnerException":null,"HelpURL":"sample string 1","StackTraceString":null,"RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":3,"Source":"sample string 2","WatsonBuckets":null},"CourseId":"956caa3a-059e-4fb1-b475-0bdb9e0e78a2","GroupId":"2beb1380-735d-47e2-aad9-a1be8ecd0629","GroupStatus":1,"StudentId":"a67688c2-1b72-4852-8dfb-e7b8667f19f1","StudentStatus":1,"EnrollmentId":"c35301ba-f5ac-439d-be22-8370d4d5bb66","EnrollStatus":1}
application/xml, text/xml
Sample:
<EnrollResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WheLMS.WebApi.Models">
<CourseId>956caa3a-059e-4fb1-b475-0bdb9e0e78a2</CourseId>
<Description>sample string 2</Description>
<EnrollStatus>1</EnrollStatus>
<Enrollled>true</Enrollled>
<EnrollmentId>c35301ba-f5ac-439d-be22-8370d4d5bb66</EnrollmentId>
<GroupId>2beb1380-735d-47e2-aad9-a1be8ecd0629</GroupId>
<GroupStatus>1</GroupStatus>
<Hata xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
<Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
<WatsonBuckets i:nil="true" xmlns="" />
</Hata>
<StudentId>a67688c2-1b72-4852-8dfb-e7b8667f19f1</StudentId>
<StudentStatus>1</StudentStatus>
</EnrollResult>