POST api/Trainees/{programid}/SaveNewDrivers

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

integer

Required

Body Parameters

Collection of TraineeSession
NameDescriptionTypeAdditional information
my_session_id

integer

None.

session_no

integer

None.

Trait

string

None.

TraitKey

integer

None.

islocked

boolean

None.

sched_date

date

None.

start_date

date

None.

complete_date

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "my_session_id": 1,
    "session_no": 2,
    "Trait": "sample string 3",
    "TraitKey": 4,
    "islocked": true,
    "sched_date": "2021-06-18T20:54:16.1003332-07:00",
    "start_date": "2021-06-18T20:54:16.1003332-07:00",
    "complete_date": "2021-06-18T20:54:16.1003332-07:00"
  },
  {
    "my_session_id": 1,
    "session_no": 2,
    "Trait": "sample string 3",
    "TraitKey": 4,
    "islocked": true,
    "sched_date": "2021-06-18T20:54:16.1003332-07:00",
    "start_date": "2021-06-18T20:54:16.1003332-07:00",
    "complete_date": "2021-06-18T20:54:16.1003332-07:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTraineeSession xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Trainees">
  <TraineeSession>
    <Trait>sample string 3</Trait>
    <TraitKey>4</TraitKey>
    <complete_date>2021-06-18T20:54:16.1003332-07:00</complete_date>
    <islocked>true</islocked>
    <my_session_id>1</my_session_id>
    <sched_date>2021-06-18T20:54:16.1003332-07:00</sched_date>
    <session_no>2</session_no>
    <start_date>2021-06-18T20:54:16.1003332-07:00</start_date>
  </TraineeSession>
  <TraineeSession>
    <Trait>sample string 3</Trait>
    <TraitKey>4</TraitKey>
    <complete_date>2021-06-18T20:54:16.1003332-07:00</complete_date>
    <islocked>true</islocked>
    <my_session_id>1</my_session_id>
    <sched_date>2021-06-18T20:54:16.1003332-07:00</sched_date>
    <session_no>2</session_no>
    <start_date>2021-06-18T20:54:16.1003332-07:00</start_date>
  </TraineeSession>
</ArrayOfTraineeSession>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

Collection of TraineeSession
NameDescriptionTypeAdditional information
my_session_id

integer

None.

session_no

integer

None.

Trait

string

None.

TraitKey

integer

None.

islocked

boolean

None.

sched_date

date

None.

start_date

date

None.

complete_date

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "my_session_id": 1,
    "session_no": 2,
    "Trait": "sample string 3",
    "TraitKey": 4,
    "islocked": true,
    "sched_date": "2021-06-18T20:54:16.1003332-07:00",
    "start_date": "2021-06-18T20:54:16.1003332-07:00",
    "complete_date": "2021-06-18T20:54:16.1003332-07:00"
  },
  {
    "my_session_id": 1,
    "session_no": 2,
    "Trait": "sample string 3",
    "TraitKey": 4,
    "islocked": true,
    "sched_date": "2021-06-18T20:54:16.1003332-07:00",
    "start_date": "2021-06-18T20:54:16.1003332-07:00",
    "complete_date": "2021-06-18T20:54:16.1003332-07:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTraineeSession xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Trainees">
  <TraineeSession>
    <Trait>sample string 3</Trait>
    <TraitKey>4</TraitKey>
    <complete_date>2021-06-18T20:54:16.1003332-07:00</complete_date>
    <islocked>true</islocked>
    <my_session_id>1</my_session_id>
    <sched_date>2021-06-18T20:54:16.1003332-07:00</sched_date>
    <session_no>2</session_no>
    <start_date>2021-06-18T20:54:16.1003332-07:00</start_date>
  </TraineeSession>
  <TraineeSession>
    <Trait>sample string 3</Trait>
    <TraitKey>4</TraitKey>
    <complete_date>2021-06-18T20:54:16.1003332-07:00</complete_date>
    <islocked>true</islocked>
    <my_session_id>1</my_session_id>
    <sched_date>2021-06-18T20:54:16.1003332-07:00</sched_date>
    <session_no>2</session_no>
    <start_date>2021-06-18T20:54:16.1003332-07:00</start_date>
  </TraineeSession>
</ArrayOfTraineeSession>