POST v1/JobCost/JobCostServiceTimeEntry

Allows performing a 'Job Cost Service Time Entry'.

This is secure method and requires below attributes in header

Authorization: Midnight Authorize Token

Request Information

URI Parameters

None.

Body Parameters

JobCostServiceTimeEntryRequest
NameDescriptionTypeAdditional information
EmployeeId

Employee Id

integer

Required

ActivityDate

Activity Date

date

Required

JobCostItems

Service Time Entry Request Item

Collection of ServiceTimeEntryRequestItem

Required

Request Formats

application/json, text/json

Sample:
{
  "ActivityDate": "2024-04-19T12:03:45.17193-04:00",
  "JobCostItems": [
    {
      "OperationCode": "sample string 1",
      "HelpersCount": 2,
      "TotalTime": 3.1,
      "JobComment": "sample string 4",
      "OrderId": 5
    },
    {
      "OperationCode": "sample string 1",
      "HelpersCount": 2,
      "TotalTime": 3.1,
      "JobComment": "sample string 4",
      "OrderId": 5
    }
  ],
  "EmployeeId": 1
}

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

Response Information

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string>sample string 1</string>