GET api/Trainees/{programid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

integer

Required

Body Parameters

None.

Response Information

Resource Description

TraineeModel
NameDescriptionTypeAdditional information
person_link

integer

None.

PersonName

string

None.

industries

string

None.

strWorkPhone

string

None.

strCellPhone

string

None.

strEmail1

string

None.

TestKey

integer

None.

CoachName

string

None.

CoachEmail

string

None.

CompanyName

string

None.

numLicenses

integer

None.

numSessions

integer

None.

sessions

Collection of TraineeSession

None.

notes

Collection of PeopleNoteModel

None.

Response Formats

application/json, text/json

Sample:
{
  "person_link": 1,
  "PersonName": "sample string 2",
  "industries": "sample string 3",
  "strWorkPhone": "sample string 4",
  "strCellPhone": "sample string 5",
  "strEmail1": "sample string 6",
  "TestKey": 7,
  "CoachName": "sample string 8",
  "CoachEmail": "sample string 9",
  "CompanyName": "sample string 10",
  "numLicenses": 11,
  "numSessions": 12,
  "sessions": [
    {
      "my_session_id": 1,
      "session_no": 2,
      "Trait": "sample string 3",
      "TraitKey": 4,
      "islocked": true,
      "sched_date": "2021-10-17T09:47:45.1128784-07:00",
      "start_date": "2021-10-17T09:47:45.1128784-07:00",
      "complete_date": "2021-10-17T09:47:45.1128784-07:00"
    },
    {
      "my_session_id": 1,
      "session_no": 2,
      "Trait": "sample string 3",
      "TraitKey": 4,
      "islocked": true,
      "sched_date": "2021-10-17T09:47:45.1128784-07:00",
      "start_date": "2021-10-17T09:47:45.1128784-07:00",
      "complete_date": "2021-10-17T09:47:45.1128784-07:00"
    }
  ],
  "notes": [
    {
      "note_id": 1,
      "note_personid": 2,
      "note_note": "sample string 3",
      "note_leftbypersonid": 4,
      "note_date": "2021-10-17T09:47:45.1128784-07:00",
      "noteByName": "sample string 6"
    },
    {
      "note_id": 1,
      "note_personid": 2,
      "note_note": "sample string 3",
      "note_leftbypersonid": 4,
      "note_date": "2021-10-17T09:47:45.1128784-07:00",
      "noteByName": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<TraineeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Trainees">
  <CoachEmail>sample string 9</CoachEmail>
  <CoachName>sample string 8</CoachName>
  <CompanyName>sample string 10</CompanyName>
  <PersonName>sample string 2</PersonName>
  <TestKey>7</TestKey>
  <industries>sample string 3</industries>
  <notes xmlns:d2p1="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.People">
    <d2p1:PeopleNoteModel>
      <d2p1:noteByName>sample string 6</d2p1:noteByName>
      <d2p1:note_date>2021-10-17T09:47:45.1128784-07:00</d2p1:note_date>
      <d2p1:note_id>1</d2p1:note_id>
      <d2p1:note_leftbypersonid>4</d2p1:note_leftbypersonid>
      <d2p1:note_note>sample string 3</d2p1:note_note>
      <d2p1:note_personid>2</d2p1:note_personid>
    </d2p1:PeopleNoteModel>
    <d2p1:PeopleNoteModel>
      <d2p1:noteByName>sample string 6</d2p1:noteByName>
      <d2p1:note_date>2021-10-17T09:47:45.1128784-07:00</d2p1:note_date>
      <d2p1:note_id>1</d2p1:note_id>
      <d2p1:note_leftbypersonid>4</d2p1:note_leftbypersonid>
      <d2p1:note_note>sample string 3</d2p1:note_note>
      <d2p1:note_personid>2</d2p1:note_personid>
    </d2p1:PeopleNoteModel>
  </notes>
  <numLicenses>11</numLicenses>
  <numSessions>12</numSessions>
  <person_link>1</person_link>
  <sessions>
    <TraineeSession>
      <Trait>sample string 3</Trait>
      <TraitKey>4</TraitKey>
      <complete_date>2021-10-17T09:47:45.1128784-07:00</complete_date>
      <islocked>true</islocked>
      <my_session_id>1</my_session_id>
      <sched_date>2021-10-17T09:47:45.1128784-07:00</sched_date>
      <session_no>2</session_no>
      <start_date>2021-10-17T09:47:45.1128784-07:00</start_date>
    </TraineeSession>
    <TraineeSession>
      <Trait>sample string 3</Trait>
      <TraitKey>4</TraitKey>
      <complete_date>2021-10-17T09:47:45.1128784-07:00</complete_date>
      <islocked>true</islocked>
      <my_session_id>1</my_session_id>
      <sched_date>2021-10-17T09:47:45.1128784-07:00</sched_date>
      <session_no>2</session_no>
      <start_date>2021-10-17T09:47:45.1128784-07:00</start_date>
    </TraineeSession>
  </sessions>
  <strCellPhone>sample string 5</strCellPhone>
  <strEmail1>sample string 6</strEmail1>
  <strWorkPhone>sample string 4</strWorkPhone>
</TraineeModel>