POST api/JobTimesheet

Request Information

URI Parameters

None.

Body Parameters

JobTimesheet
NameDescriptionTypeAdditional information
JobTimesheetId

Sedona internal autonumber for the Job Timesheet record

integer

None.

JobCode

Abbreviated Job Code

string

String length: inclusive between 0 and 25

JobTaskId

integer

None.

InstallerCode

Value from SY_Employee table

string

None.

InstallerId

Value from SV_Service_Tech table

integer

None.

WorkDate

date

None.

WorkDateOffset

Only used when useUtcOffset is set to "1" in the web.config file

date

None.

LaborTaskCode

Value from OE_Labor_Task table

string

None.

Units

decimal number

None.

Rate

decimal number

None.

Amount

decimal number

None.

Desciption

string

None.

PostedToGL

Post to the GL tables

boolean

None.

Usercode

the user making this change; defaults to UserCode value from config file if not set explicitly

string

String length: inclusive between 0 and 30

EntryDate

date

None.

EntryDateOffset

Only used when useUtcOffset is set to "1" in the web.config file

date

None.

RateType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "JobTimesheetId": 1,
  "JobCode": "sample string 2",
  "JobTaskId": 1,
  "InstallerCode": "sample string 3",
  "InstallerId": 1,
  "WorkDate": "2024-12-21T10:43:16.879933-06:00",
  "WorkDateOffset": "2024-12-21T10:43:16.879933-06:00",
  "LaborTaskCode": "sample string 4",
  "Units": 1.1,
  "Rate": 1.0,
  "Amount": 1.0,
  "Desciption": "sample string 5",
  "PostedToGL": true,
  "Usercode": "sample string 7",
  "EntryDate": "2024-12-21T10:43:16.879933-06:00",
  "EntryDateOffset": "2024-12-21T10:43:16.879933-06:00",
  "RateType": "sample string 8"
}

application/xml, text/xml

Sample:
<JobTimesheet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <Amount>1</Amount>
  <Desciption>sample string 5</Desciption>
  <EntryDate>2024-12-21T10:43:16.879933-06:00</EntryDate>
  <EntryDateOffset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2024-12-21T16:43:16.879933Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-360</d2p1:OffsetMinutes>
  </EntryDateOffset>
  <InstallerCode>sample string 3</InstallerCode>
  <InstallerId>1</InstallerId>
  <JobCode>sample string 2</JobCode>
  <JobTaskId>1</JobTaskId>
  <JobTimesheetId>1</JobTimesheetId>
  <LaborTaskCode>sample string 4</LaborTaskCode>
  <PostedToGL>true</PostedToGL>
  <Rate>1</Rate>
  <RateType>sample string 8</RateType>
  <Units>1.1</Units>
  <Usercode>sample string 7</Usercode>
  <WorkDate>2024-12-21T10:43:16.879933-06:00</WorkDate>
  <WorkDateOffset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2024-12-21T16:43:16.879933Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-360</d2p1:OffsetMinutes>
  </WorkDateOffset>
</JobTimesheet>

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 'JobTimesheet'.

Response Information

Resource Description

JobTimesheet
NameDescriptionTypeAdditional information
JobTimesheetId

Sedona internal autonumber for the Job Timesheet record

integer

None.

JobCode

Abbreviated Job Code

string

String length: inclusive between 0 and 25

JobTaskId

integer

None.

InstallerCode

Value from SY_Employee table

string

None.

InstallerId

Value from SV_Service_Tech table

integer

None.

WorkDate

date

None.

WorkDateOffset

Only used when useUtcOffset is set to "1" in the web.config file

date

None.

LaborTaskCode

Value from OE_Labor_Task table

string

None.

Units

decimal number

None.

Rate

decimal number

None.

Amount

decimal number

None.

Desciption

string

None.

PostedToGL

Post to the GL tables

boolean

None.

Usercode

the user making this change; defaults to UserCode value from config file if not set explicitly

string

String length: inclusive between 0 and 30

EntryDate

date

None.

EntryDateOffset

Only used when useUtcOffset is set to "1" in the web.config file

date

None.

RateType

string

None.

Response Formats

application/json, text/json

Sample:
{
  "JobTimesheetId": 1,
  "JobCode": "sample string 2",
  "JobTaskId": 1,
  "InstallerCode": "sample string 3",
  "InstallerId": 1,
  "WorkDate": "2024-12-21T10:43:16.8955524-06:00",
  "WorkDateOffset": "2024-12-21T10:43:16.8955524-06:00",
  "LaborTaskCode": "sample string 4",
  "Units": 1.1,
  "Rate": 1.0,
  "Amount": 1.0,
  "Desciption": "sample string 5",
  "PostedToGL": true,
  "Usercode": "sample string 7",
  "EntryDate": "2024-12-21T10:43:16.8955524-06:00",
  "EntryDateOffset": "2024-12-21T10:43:16.8955524-06:00",
  "RateType": "sample string 8"
}

application/xml, text/xml

Sample:
<JobTimesheet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <Amount>1</Amount>
  <Desciption>sample string 5</Desciption>
  <EntryDate>2024-12-21T10:43:16.8955524-06:00</EntryDate>
  <EntryDateOffset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2024-12-21T16:43:16.8955524Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-360</d2p1:OffsetMinutes>
  </EntryDateOffset>
  <InstallerCode>sample string 3</InstallerCode>
  <InstallerId>1</InstallerId>
  <JobCode>sample string 2</JobCode>
  <JobTaskId>1</JobTaskId>
  <JobTimesheetId>1</JobTimesheetId>
  <LaborTaskCode>sample string 4</LaborTaskCode>
  <PostedToGL>true</PostedToGL>
  <Rate>1</Rate>
  <RateType>sample string 8</RateType>
  <Units>1.1</Units>
  <Usercode>sample string 7</Usercode>
  <WorkDate>2024-12-21T10:43:16.8955524-06:00</WorkDate>
  <WorkDateOffset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2024-12-21T16:43:16.8955524Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-360</d2p1:OffsetMinutes>
  </WorkDateOffset>
</JobTimesheet>