POST api/create/insert-plan-ot

Request Information

URI Parameters

None.

Body Parameters

InsertPlanOT
NameDescriptionTypeAdditional information
PlanOtId

integer

None.

JobNo

string

None.

PlannedBy

integer

None.

PlannedDate

date

None.

StartDate

date

None.

EndDate

date

None.

StartTime

time interval

None.

EndTime

time interval

None.

PlanStartDate

date

None.

PlanEndDate

date

None.

EmpId

integer

None.

CostCentre

string

None.

Description

string

None.

SiteId

integer

None.

ApproverId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PlanOtId": 1,
  "JobNo": "sample string 2",
  "PlannedBy": 3,
  "PlannedDate": "2025-12-05T21:05:52.6652626-08:00",
  "StartDate": "2025-12-05T21:05:52.6652626-08:00",
  "EndDate": "2025-12-05T21:05:52.6652626-08:00",
  "StartTime": "00:00:00.1234567",
  "EndTime": "00:00:00.1234567",
  "PlanStartDate": "2025-12-05T21:05:52.6652626-08:00",
  "PlanEndDate": "2025-12-05T21:05:52.6652626-08:00",
  "EmpId": 11,
  "CostCentre": "sample string 12",
  "Description": "sample string 13",
  "SiteId": 14,
  "ApproverId": 15
}

application/xml, text/xml

Sample:
<InsertPlanOT xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/working_sample_mvc_api.Models">
  <ApproverId>15</ApproverId>
  <CostCentre>sample string 12</CostCentre>
  <Description>sample string 13</Description>
  <EmpId>11</EmpId>
  <EndDate>2025-12-05T21:05:52.6652626-08:00</EndDate>
  <EndTime>PT0.1234567S</EndTime>
  <JobNo>sample string 2</JobNo>
  <PlanEndDate>2025-12-05T21:05:52.6652626-08:00</PlanEndDate>
  <PlanOtId>1</PlanOtId>
  <PlanStartDate>2025-12-05T21:05:52.6652626-08:00</PlanStartDate>
  <PlannedBy>3</PlannedBy>
  <PlannedDate>2025-12-05T21:05:52.6652626-08:00</PlannedDate>
  <SiteId>14</SiteId>
  <StartDate>2025-12-05T21:05:52.6652626-08:00</StartDate>
  <StartTime>PT0.1234567S</StartTime>
</InsertPlanOT>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.