POST api/LMSApi/EnrollPost
Request Information
URI Parameters
None.
Body Parameters
EnrollmentName | 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": "97ac1cd5-fcf5-4dbf-942d-d1aa24a47554", "GroupId": "37156a79-5434-491c-99b6-088c0e4baabd", "EnrollmentId": "7ef3ad21-c7a2-4fcd-a5c0-651894dae8b7", "StudentId": "f9813450-7046-421a-b286-f77570ff59c8", "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-06-06T13:06:53.8660437+03:00", "StudentNo": "sample string 13", "EnrollKey": "sample string 14" }
text/html
Sample:
{"CourseId":"97ac1cd5-fcf5-4dbf-942d-d1aa24a47554","GroupId":"37156a79-5434-491c-99b6-088c0e4baabd","EnrollmentId":"7ef3ad21-c7a2-4fcd-a5c0-651894dae8b7","StudentId":"f9813450-7046-421a-b286-f77570ff59c8","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-06-06T13:06:53.8660437+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-06-06T13:06:53.8660437+03:00</BirthDate> <CourseId>97ac1cd5-fcf5-4dbf-942d-d1aa24a47554</CourseId> <Email>sample string 11</Email> <EnrollKey>sample string 14</EnrollKey> <EnrollmentId>7ef3ad21-c7a2-4fcd-a5c0-651894dae8b7</EnrollmentId> <Gender>sample string 12</Gender> <GroupId>37156a79-5434-491c-99b6-088c0e4baabd</GroupId> <GroupName>sample string 5</GroupName> <IdentityNo>sample string 9</IdentityNo> <Name>sample string 6</Name> <StudentId>f9813450-7046-421a-b286-f77570ff59c8</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
EnrollResultName | 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": "57f831e9-d653-4b86-98fb-0ffcda5731bc", "GroupId": "651f60ca-e97f-4906-9554-8f317d5534a1", "GroupStatus": 1, "StudentId": "a9c7ef19-cdb6-4ecb-94b9-632602be51a8", "StudentStatus": 1, "EnrollmentId": "b8dcd3b4-a34b-4e67-bb65-ee4d0443ab4b", "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":"57f831e9-d653-4b86-98fb-0ffcda5731bc","GroupId":"651f60ca-e97f-4906-9554-8f317d5534a1","GroupStatus":1,"StudentId":"a9c7ef19-cdb6-4ecb-94b9-632602be51a8","StudentStatus":1,"EnrollmentId":"b8dcd3b4-a34b-4e67-bb65-ee4d0443ab4b","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>57f831e9-d653-4b86-98fb-0ffcda5731bc</CourseId> <Description>sample string 2</Description> <EnrollStatus>1</EnrollStatus> <Enrollled>true</Enrollled> <EnrollmentId>b8dcd3b4-a34b-4e67-bb65-ee4d0443ab4b</EnrollmentId> <GroupId>651f60ca-e97f-4906-9554-8f317d5534a1</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>a9c7ef19-cdb6-4ecb-94b9-632602be51a8</StudentId> <StudentStatus>1</StudentStatus> </EnrollResult>