PUT api/jobtimesheet/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

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-07-26T21:52:21.9150752-05:00",
  "WorkDateOffset": "2024-07-26T21:52:21.9150752-05: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-07-26T21:52:21.9150752-05:00",
  "EntryDateOffset": "2024-07-26T21:52:21.9150752-05: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-07-26T21:52:21.9150752-05:00</EntryDate>
  <EntryDateOffset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2024-07-27T02:52:21.9150752Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-300</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-07-26T21:52:21.9150752-05:00</WorkDate>
  <WorkDateOffset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2024-07-27T02:52:21.9150752Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-300</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

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.