POST api/Courses/retrieve_academy_courses

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Course
NameDescriptionTypeAdditional information
Identifier

globally unique identifier

None.

Inserted

date

None.

Updated

date

None.

Deleted

date

None.

Content

string

None.

Credit

integer

None.

Description

string

None.

Finish

date

None.

Name

string

None.

Start

date

None.

Totara

integer

None.

routes_available

integer

None.

Modules

Collection of Module

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Identifier": "08ebcf88-fa13-40ba-b772-a335f29141b8",
    "Inserted": "2024-12-12T20:29:03.0708511+00:00",
    "Updated": "2024-12-12T20:29:03.0708511+00:00",
    "Deleted": "2024-12-12T20:29:03.0708511+00:00",
    "Content": "sample string 3",
    "Credit": 4,
    "Description": "sample string 5",
    "Finish": "2024-12-12T20:29:03.0708511+00:00",
    "Name": "sample string 6",
    "Start": "2024-12-12T20:29:03.0708511+00:00",
    "Totara": 1,
    "routes_available": 8,
    "Modules": [
      {
        "Identifier": "db82d1bb-da14-4c87-8460-7a6d038b1d82",
        "Inserted": "2024-12-12T20:29:03.0708511+00:00",
        "Updated": "2024-12-12T20:29:03.0708511+00:00",
        "Deleted": "2024-12-12T20:29:03.0708511+00:00",
        "Activation": true,
        "Content": "sample string 4",
        "Course": "08ebcf88-fa13-40ba-b772-a335f29141b8",
        "Credit": 6,
        "Description": "sample string 7",
        "Mandatory": true,
        "Name": "sample string 9",
        "Totara": 1,
        "tier": 10,
        "routes": 11,
        "Sets": [
          {
            "Identifier": "21b592a6-6a9a-49d4-8408-c324730e0d9f",
            "Inserted": "2024-12-12T20:29:03.0708511+00:00",
            "Updated": "2024-12-12T20:29:03.0708511+00:00",
            "Deleted": "2024-12-12T20:29:03.0708511+00:00",
            "Activation": true,
            "Country": "70b67c2e-1878-461f-9a76-098671db9dca",
            "Enrolments": 5,
            "Finish": "2024-12-12T20:29:03.0708511+00:00",
            "Location": "sample string 6",
            "Maximum": 7,
            "Minimum": 8,
            "Module": "db82d1bb-da14-4c87-8460-7a6d038b1d82",
            "Start": "2024-12-12T20:29:03.0708511+00:00",
            "Totara": 1,
            "Workshops": 10
          }
        ],
        "Tutors": [
          {
            "Identifier": "46646a08-dac6-4fb5-b665-62235302ea55",
            "Inserted": "2024-12-12T20:29:03.0864727+00:00",
            "Updated": "2024-12-12T20:29:03.0864727+00:00",
            "Deleted": "2024-12-12T20:29:03.0864727+00:00",
            "Activation": true,
            "Enrolments": 4,
            "Module": "db82d1bb-da14-4c87-8460-7a6d038b1d82",
            "Name": "sample string 6",
            "Totara": 1
          }
        ]
      }
    ]
  },
  {
    "Identifier": "08ebcf88-fa13-40ba-b772-a335f29141b8",
    "Inserted": "2024-12-12T20:29:03.0708511+00:00",
    "Updated": "2024-12-12T20:29:03.0708511+00:00",
    "Deleted": "2024-12-12T20:29:03.0708511+00:00",
    "Content": "sample string 3",
    "Credit": 4,
    "Description": "sample string 5",
    "Finish": "2024-12-12T20:29:03.0708511+00:00",
    "Name": "sample string 6",
    "Start": "2024-12-12T20:29:03.0708511+00:00",
    "Totara": 1,
    "routes_available": 8,
    "Modules": [
      {
        "Identifier": "db82d1bb-da14-4c87-8460-7a6d038b1d82",
        "Inserted": "2024-12-12T20:29:03.0708511+00:00",
        "Updated": "2024-12-12T20:29:03.0708511+00:00",
        "Deleted": "2024-12-12T20:29:03.0708511+00:00",
        "Activation": true,
        "Content": "sample string 4",
        "Course": "08ebcf88-fa13-40ba-b772-a335f29141b8",
        "Credit": 6,
        "Description": "sample string 7",
        "Mandatory": true,
        "Name": "sample string 9",
        "Totara": 1,
        "tier": 10,
        "routes": 11,
        "Sets": [
          {
            "Identifier": "21b592a6-6a9a-49d4-8408-c324730e0d9f",
            "Inserted": "2024-12-12T20:29:03.0708511+00:00",
            "Updated": "2024-12-12T20:29:03.0708511+00:00",
            "Deleted": "2024-12-12T20:29:03.0708511+00:00",
            "Activation": true,
            "Country": "70b67c2e-1878-461f-9a76-098671db9dca",
            "Enrolments": 5,
            "Finish": "2024-12-12T20:29:03.0708511+00:00",
            "Location": "sample string 6",
            "Maximum": 7,
            "Minimum": 8,
            "Module": "db82d1bb-da14-4c87-8460-7a6d038b1d82",
            "Start": "2024-12-12T20:29:03.0708511+00:00",
            "Totara": 1,
            "Workshops": 10
          }
        ],
        "Tutors": [
          {
            "Identifier": "46646a08-dac6-4fb5-b665-62235302ea55",
            "Inserted": "2024-12-12T20:29:03.0864727+00:00",
            "Updated": "2024-12-12T20:29:03.0864727+00:00",
            "Deleted": "2024-12-12T20:29:03.0864727+00:00",
            "Activation": true,
            "Enrolments": 4,
            "Module": "db82d1bb-da14-4c87-8460-7a6d038b1d82",
            "Name": "sample string 6",
            "Totara": 1
          }
        ]
      }
    ]
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Data.Linq.EntitySet`1[[Totara.WEBAPI.Module, Totara.WEBAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Data.Linq.EntitySet`1[[Totara.WEBAPI.Module, Totara.WEBAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.