POST api/tasks

Request Information

URI Parameters

None.

Body Parameters

TaskCreateOrUpdateBindingModel
NameDescriptionTypeAdditional information
Id

integer

None.

Type

string

None.

Description

string

None.

Date

date

None.

Status

TaskStatus

None.

PetrolLog

PetrolLog

None.

ReferenceId

string

None.

JobId

integer

None.

BranchLocationId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Type": "sample string 2",
  "Description": "sample string 3",
  "Date": "2025-12-24T02:43:45.1805787+00:00",
  "Status": 0,
  "PetrolLog": {
    "Id": 1,
    "Date": "2025-12-24T02:43:45.1805787+00:00",
    "VehiclePlateNumber": "sample string 3",
    "Mileage": 4,
    "GasolineLevel": 5.1,
    "ReceiptUrl": "sample string 6"
  },
  "ReferenceId": "sample string 4",
  "JobId": 1,
  "BranchLocationId": 1
}

application/xml, text/xml

Sample:
<TaskCreateOrUpdateBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethoz.Models.BindingModels">
  <BranchLocationId>1</BranchLocationId>
  <Date>2025-12-24T02:43:45.1805787+00:00</Date>
  <Description>sample string 3</Description>
  <Id>1</Id>
  <JobId>1</JobId>
  <PetrolLog xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ethoz.Models.Domain">
    <d2p1:Date>2025-12-24T02:43:45.1805787+00:00</d2p1:Date>
    <d2p1:GasolineLevel>5.1</d2p1:GasolineLevel>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Mileage>4</d2p1:Mileage>
    <d2p1:ReceiptUrl>sample string 6</d2p1:ReceiptUrl>
    <d2p1:VehiclePlateNumber>sample string 3</d2p1:VehiclePlateNumber>
  </PetrolLog>
  <ReferenceId>sample string 4</ReferenceId>
  <Status>Unassigned</Status>
  <Type>sample string 2</Type>
</TaskCreateOrUpdateBindingModel>

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.