POST api/requests/assign
Request Information
URI Parameters
None.
Body Parameters
RequestAssignDriverBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DriverId | integer |
Required |
|
| Request | RequestScheduleItemBindingModel |
None. |
|
| Jobs | Collection of RequestScheduleItemBindingModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"DriverId": 1,
"Request": {
"Id": 1,
"JobType": 0,
"ScheduledStartDate": "2025-12-22T21:46:20.184238+00:00",
"ScheduledEndDate": "2025-12-22T21:46:20.184238+00:00"
},
"Jobs": [
{
"Id": 1,
"JobType": 0,
"ScheduledStartDate": "2025-12-22T21:46:20.184238+00:00",
"ScheduledEndDate": "2025-12-22T21:46:20.184238+00:00"
},
{
"Id": 1,
"JobType": 0,
"ScheduledStartDate": "2025-12-22T21:46:20.184238+00:00",
"ScheduledEndDate": "2025-12-22T21:46:20.184238+00:00"
}
]
}
application/xml, text/xml
Sample:
<RequestAssignDriverBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethoz.Models.BindingModels">
<DriverId>1</DriverId>
<Jobs>
<RequestScheduleItemBindingModel>
<Id>1</Id>
<JobType>Regular</JobType>
<ScheduledEndDate>2025-12-22T21:46:20.184238+00:00</ScheduledEndDate>
<ScheduledStartDate>2025-12-22T21:46:20.184238+00:00</ScheduledStartDate>
</RequestScheduleItemBindingModel>
<RequestScheduleItemBindingModel>
<Id>1</Id>
<JobType>Regular</JobType>
<ScheduledEndDate>2025-12-22T21:46:20.184238+00:00</ScheduledEndDate>
<ScheduledStartDate>2025-12-22T21:46:20.184238+00:00</ScheduledStartDate>
</RequestScheduleItemBindingModel>
</Jobs>
<Request>
<Id>1</Id>
<JobType>Regular</JobType>
<ScheduledEndDate>2025-12-22T21:46:20.184238+00:00</ScheduledEndDate>
<ScheduledStartDate>2025-12-22T21:46:20.184238+00:00</ScheduledStartDate>
</Request>
</RequestAssignDriverBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.