POST api/Courses/retrieve_academy_course_purchases

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of vw_academy_course_purchase
NameDescriptionTypeAdditional information
Email

string

None.

First

string

None.

Last

string

None.

totara_user_id

integer

None.

person_id

globally unique identifier

None.

Order

integer

None.

Code

integer

None.

Credit

integer

None.

Materials

boolean

None.

Workshops

boolean

None.

Start

date

None.

Name

string

None.

Finish

date

None.

totara_course_id

integer

None.

course_id

globally unique identifier

None.

academy_short_course_id

globally unique identifier

None.

academy_short_course_name

string

None.

totara_short_course_id

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Email": "sample string 1",
    "First": "sample string 2",
    "Last": "sample string 3",
    "totara_user_id": 1,
    "person_id": "e29f7455-ae50-48cc-9dab-086a320f1214",
    "Order": 5,
    "Code": 6,
    "Credit": 7,
    "Materials": true,
    "Workshops": true,
    "Start": "2018-07-19T23:44:54.3852139+01:00",
    "Name": "sample string 10",
    "Finish": "2018-07-19T23:44:54.3852139+01:00",
    "totara_course_id": 1,
    "course_id": "9db8f7d5-2b45-44f5-9b95-4e89d4a9c0b6",
    "academy_short_course_id": "b36f0a8e-262b-4249-a939-c48200ccda8a",
    "academy_short_course_name": "sample string 11",
    "totara_short_course_id": 1
  },
  {
    "Email": "sample string 1",
    "First": "sample string 2",
    "Last": "sample string 3",
    "totara_user_id": 1,
    "person_id": "e29f7455-ae50-48cc-9dab-086a320f1214",
    "Order": 5,
    "Code": 6,
    "Credit": 7,
    "Materials": true,
    "Workshops": true,
    "Start": "2018-07-19T23:44:54.3852139+01:00",
    "Name": "sample string 10",
    "Finish": "2018-07-19T23:44:54.3852139+01:00",
    "totara_course_id": 1,
    "course_id": "9db8f7d5-2b45-44f5-9b95-4e89d4a9c0b6",
    "academy_short_course_id": "b36f0a8e-262b-4249-a939-c48200ccda8a",
    "academy_short_course_name": "sample string 11",
    "totara_short_course_id": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfvw_academy_course_purchase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Totara.WEBAPI">
  <vw_academy_course_purchase>
    <Code>6</Code>
    <Credit>7</Credit>
    <Email>sample string 1</Email>
    <Finish>2018-07-19T23:44:54.3852139+01:00</Finish>
    <First>sample string 2</First>
    <Last>sample string 3</Last>
    <Materials>true</Materials>
    <Name>sample string 10</Name>
    <Order>5</Order>
    <Start>2018-07-19T23:44:54.3852139+01:00</Start>
    <Workshops>true</Workshops>
    <academy_short_course_id>b36f0a8e-262b-4249-a939-c48200ccda8a</academy_short_course_id>
    <academy_short_course_name>sample string 11</academy_short_course_name>
    <course_id>9db8f7d5-2b45-44f5-9b95-4e89d4a9c0b6</course_id>
    <person_id>e29f7455-ae50-48cc-9dab-086a320f1214</person_id>
    <totara_course_id>1</totara_course_id>
    <totara_short_course_id>1</totara_short_course_id>
    <totara_user_id>1</totara_user_id>
  </vw_academy_course_purchase>
  <vw_academy_course_purchase>
    <Code>6</Code>
    <Credit>7</Credit>
    <Email>sample string 1</Email>
    <Finish>2018-07-19T23:44:54.3852139+01:00</Finish>
    <First>sample string 2</First>
    <Last>sample string 3</Last>
    <Materials>true</Materials>
    <Name>sample string 10</Name>
    <Order>5</Order>
    <Start>2018-07-19T23:44:54.3852139+01:00</Start>
    <Workshops>true</Workshops>
    <academy_short_course_id>b36f0a8e-262b-4249-a939-c48200ccda8a</academy_short_course_id>
    <academy_short_course_name>sample string 11</academy_short_course_name>
    <course_id>9db8f7d5-2b45-44f5-9b95-4e89d4a9c0b6</course_id>
    <person_id>e29f7455-ae50-48cc-9dab-086a320f1214</person_id>
    <totara_course_id>1</totara_course_id>
    <totara_short_course_id>1</totara_short_course_id>
    <totara_user_id>1</totara_user_id>
  </vw_academy_course_purchase>
</ArrayOfvw_academy_course_purchase>