POST api/jobs/setduration

Request Information

URI Parameters

None.

Body Parameters

JobSetDurationBindingModel
NameDescriptionTypeAdditional information
DriverId

integer

None.

Request

DurationItem

None.

Jobs

Collection of DurationItem

None.

Request Formats

application/json, text/json

Sample:
{
  "DriverId": 1,
  "Request": {
    "Id": 1,
    "ScheduledStartDate": "2025-12-25T18:41:26.7428029+00:00",
    "ScheduledEndDate": "2025-12-25T18:41:26.7428029+00:00",
    "JobType": 0
  },
  "Jobs": [
    {
      "Id": 1,
      "ScheduledStartDate": "2025-12-25T18:41:26.7428029+00:00",
      "ScheduledEndDate": "2025-12-25T18:41:26.7428029+00:00",
      "JobType": 0
    },
    {
      "Id": 1,
      "ScheduledStartDate": "2025-12-25T18:41:26.7428029+00:00",
      "ScheduledEndDate": "2025-12-25T18:41:26.7428029+00:00",
      "JobType": 0
    }
  ]
}

application/xml, text/xml

Sample:
<JobSetDurationBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethoz.Models.BindingModels">
  <DriverId>1</DriverId>
  <Jobs>
    <DurationItem>
      <Id>1</Id>
      <JobType>Regular</JobType>
      <ScheduledEndDate>2025-12-25T18:41:26.7428029+00:00</ScheduledEndDate>
      <ScheduledStartDate>2025-12-25T18:41:26.7428029+00:00</ScheduledStartDate>
    </DurationItem>
    <DurationItem>
      <Id>1</Id>
      <JobType>Regular</JobType>
      <ScheduledEndDate>2025-12-25T18:41:26.7428029+00:00</ScheduledEndDate>
      <ScheduledStartDate>2025-12-25T18:41:26.7428029+00:00</ScheduledStartDate>
    </DurationItem>
  </Jobs>
  <Request>
    <Id>1</Id>
    <JobType>Regular</JobType>
    <ScheduledEndDate>2025-12-25T18:41:26.7428029+00:00</ScheduledEndDate>
    <ScheduledStartDate>2025-12-25T18:41:26.7428029+00:00</ScheduledStartDate>
  </Request>
</JobSetDurationBindingModel>

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.