POST api/Session/InsertSession

Request Information

URI Parameters

None.

Body Parameters

Session
NameDescriptionTypeAdditional information
SessionId

integer

None.

CourseId

integer

None.

StartDatetime

string

None.

CloseDatetime

string

None.

TrainerID

string

None.

Status

string

None.

CreatedBy

string

None.

UpdatedBy

string

None.

CreatedDate

string

None.

UpdatedDate

string

None.

CourseName

string

None.

QCode

string

None.

CourseIdList

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SessionId": 1,
  "CourseId": 2,
  "StartDatetime": "sample string 3",
  "CloseDatetime": "sample string 4",
  "TrainerID": "sample string 5",
  "Status": "sample string 6",
  "CreatedBy": "sample string 7",
  "UpdatedBy": "sample string 8",
  "CreatedDate": "sample string 9",
  "UpdatedDate": "sample string 10",
  "CourseName": "sample string 11",
  "QCode": "sample string 12",
  "CourseIdList": [
    1,
    2
  ]
}

text/html

Sample:
{"SessionId":1,"CourseId":2,"StartDatetime":"sample string 3","CloseDatetime":"sample string 4","TrainerID":"sample string 5","Status":"sample string 6","CreatedBy":"sample string 7","UpdatedBy":"sample string 8","CreatedDate":"sample string 9","UpdatedDate":"sample string 10","CourseName":"sample string 11","QCode":"sample string 12","CourseIdList":[1,2]}

application/xml, text/xml

Sample:
<Session xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TammaBusinessObjects">
  <CloseDatetime>sample string 4</CloseDatetime>
  <CourseId>2</CourseId>
  <CourseIdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CourseIdList>
  <CourseName>sample string 11</CourseName>
  <CreatedBy>sample string 7</CreatedBy>
  <CreatedDate>sample string 9</CreatedDate>
  <QCode>sample string 12</QCode>
  <SessionId>1</SessionId>
  <StartDatetime>sample string 3</StartDatetime>
  <Status>sample string 6</Status>
  <TrainerID>sample string 5</TrainerID>
  <UpdatedBy>sample string 8</UpdatedBy>
  <UpdatedDate>sample string 10</UpdatedDate>
</Session>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json, text/html

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>