POST api/AddPilots

Request Information

URI Parameters

None.

Body Parameters

PilotModel
NameDescriptionTypeAdditional information
ID

integer

None.

Email

string

None.

Password

string

None.

logon

string

None.

firstName

string

None.

lastName

string

None.

unionPassword

string

None.

unionLoginFailures

integer

None.

decsPassword

string

None.

companyLoginFailures

integer

None.

created

date

None.

updated

date

None.

employeeID

string

None.

companyLogon

string

None.

companyPassword

string

None.

decsLoginFailures

integer

None.

phone

string

None.

homeBase

string

None.

occupationalSeniorityDate

string

None.

active

boolean

None.

minItemValueToReport

decimal number

None.

universalAccess

boolean

None.

union

boolean

None.

passwordNotify

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Email": "sample string 2",
  "Password": "sample string 3",
  "logon": "sample string 4",
  "firstName": "sample string 5",
  "lastName": "sample string 6",
  "unionPassword": "sample string 7",
  "unionLoginFailures": 8,
  "decsPassword": "sample string 9",
  "companyLoginFailures": 10,
  "created": "2025-08-29T22:06:39.9734588+00:00",
  "updated": "2025-08-29T22:06:39.9734588+00:00",
  "employeeID": "sample string 11",
  "companyLogon": "sample string 12",
  "companyPassword": "sample string 13",
  "decsLoginFailures": 14,
  "phone": "sample string 15",
  "homeBase": "sample string 16",
  "occupationalSeniorityDate": "sample string 17",
  "active": true,
  "minItemValueToReport": 1.0,
  "universalAccess": true,
  "union": true,
  "passwordNotify": true
}

text/xml

Sample:
<PilotModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PilotPay.Models">
  <Email>sample string 2</Email>
  <ID>1</ID>
  <Password>sample string 3</Password>
  <active>true</active>
  <companyLoginFailures>10</companyLoginFailures>
  <companyLogon>sample string 12</companyLogon>
  <companyPassword>sample string 13</companyPassword>
  <created>2025-08-29T22:06:39.9734588+00:00</created>
  <decsLoginFailures>14</decsLoginFailures>
  <decsPassword>sample string 9</decsPassword>
  <employeeID>sample string 11</employeeID>
  <firstName>sample string 5</firstName>
  <homeBase>sample string 16</homeBase>
  <lastName>sample string 6</lastName>
  <logon>sample string 4</logon>
  <minItemValueToReport>1</minItemValueToReport>
  <occupationalSeniorityDate>sample string 17</occupationalSeniorityDate>
  <passwordNotify>true</passwordNotify>
  <phone>sample string 15</phone>
  <union>true</union>
  <unionLoginFailures>8</unionLoginFailures>
  <unionPassword>sample string 7</unionPassword>
  <universalAccess>true</universalAccess>
  <updated>2025-08-29T22:06:39.9734588+00:00</updated>
</PilotModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.