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": "89f64925-c548-4f5c-9bca-fb8a7394dbae",
    "Order": 5,
    "Code": 6,
    "Credit": 7,
    "Materials": true,
    "Workshops": true,
    "Start": "2017-09-25T16:20:57.4860255+01:00",
    "Name": "sample string 10",
    "Finish": "2017-09-25T16:20:57.4860255+01:00",
    "totara_course_id": 1,
    "course_id": "d5feeb25-ad5f-4682-ad89-3d5ac8e5358a",
    "academy_short_course_id": "faff4f54-9ad2-4db8-8675-2ae37674af01",
    "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": "89f64925-c548-4f5c-9bca-fb8a7394dbae",
    "Order": 5,
    "Code": 6,
    "Credit": 7,
    "Materials": true,
    "Workshops": true,
    "Start": "2017-09-25T16:20:57.4860255+01:00",
    "Name": "sample string 10",
    "Finish": "2017-09-25T16:20:57.4860255+01:00",
    "totara_course_id": 1,
    "course_id": "d5feeb25-ad5f-4682-ad89-3d5ac8e5358a",
    "academy_short_course_id": "faff4f54-9ad2-4db8-8675-2ae37674af01",
    "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>2017-09-25T16:20:57.4860255+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>2017-09-25T16:20:57.4860255+01:00</Start>
    <Workshops>true</Workshops>
    <academy_short_course_id>faff4f54-9ad2-4db8-8675-2ae37674af01</academy_short_course_id>
    <academy_short_course_name>sample string 11</academy_short_course_name>
    <course_id>d5feeb25-ad5f-4682-ad89-3d5ac8e5358a</course_id>
    <person_id>89f64925-c548-4f5c-9bca-fb8a7394dbae</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>2017-09-25T16:20:57.4860255+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>2017-09-25T16:20:57.4860255+01:00</Start>
    <Workshops>true</Workshops>
    <academy_short_course_id>faff4f54-9ad2-4db8-8675-2ae37674af01</academy_short_course_id>
    <academy_short_course_name>sample string 11</academy_short_course_name>
    <course_id>d5feeb25-ad5f-4682-ad89-3d5ac8e5358a</course_id>
    <person_id>89f64925-c548-4f5c-9bca-fb8a7394dbae</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>