GET restapi/personal/courses/iteach/v1?PageIndex={PageIndex}&PageSize={PageSize}&onlyWithResources={onlyWithResources}

Retrieves a list with Courses for the given teacher.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
PageIndex

integer

None.

PageSize

integer

None.

onlyWithResources

If sets to true gets only courses where resources are enabled.

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

Entity list with Courses.

EntityListOfItslearning.RestApi.Entities.Course
NameDescriptionTypeAdditional information
EntityArray

Collection of Itslearning.RestApi.Entities.Course

None.

Total

integer

None.

CurrentPageIndex

integer

None.

PageSize

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "EntityArray": [
    {
      "Code": "sample string 1",
      "CourseId": 2,
      "CreatedDateTimeUtc": "2025-06-17T05:21:29Z",
      "Title": "sample string 3",
      "OrganisationId": 4,
      "CourseColorClass": "sample string 5",
      "SyncKey": "sample string 6"
    },
    {
      "Code": "sample string 1",
      "CourseId": 2,
      "CreatedDateTimeUtc": "2025-06-17T05:21:29Z",
      "Title": "sample string 3",
      "OrganisationId": 4,
      "CourseColorClass": "sample string 5",
      "SyncKey": "sample string 6"
    }
  ],
  "Total": 1,
  "CurrentPageIndex": 2,
  "PageSize": 3
}

application/xml, text/xml

Sample:
<EntityList xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <CurrentPageIndex>2</CurrentPageIndex>
  <EntityArray>
    <Course>
      <Code>sample string 1</Code>
      <CourseColorClass>sample string 5</CourseColorClass>
      <CourseId>2</CourseId>
      <CreatedDateTimeUtc>2025-06-17T05:21:29Z</CreatedDateTimeUtc>
      <OrganisationId>4</OrganisationId>
      <SyncKey>sample string 6</SyncKey>
      <Title>sample string 3</Title>
    </Course>
    <Course>
      <Code>sample string 1</Code>
      <CourseColorClass>sample string 5</CourseColorClass>
      <CourseId>2</CourseId>
      <CreatedDateTimeUtc>2025-06-17T05:21:29Z</CreatedDateTimeUtc>
      <OrganisationId>4</OrganisationId>
      <SyncKey>sample string 6</SyncKey>
      <Title>sample string 3</Title>
    </Course>
  </EntityArray>
  <PageSize>3</PageSize>
  <Total>1</Total>
</EntityList>