PUT api/Drivers/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Driver
NameDescriptionTypeAdditional information
id

integer

None.

UserId

string

None.

OwnerId

string

None.

TaxiId

integer

None.

Active

boolean

None.

FirstName

string

None.

LastName

string

None.

SalaryDate

integer

None.

Weekly

boolean

None.

Rate

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "UserId": "sample string 2",
  "OwnerId": "sample string 3",
  "TaxiId": 1,
  "Active": true,
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "SalaryDate": 1,
  "Weekly": true,
  "Rate": 1.1
}

application/xml, text/xml

Sample:
<Driver xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BonaITBackend.Models">
  <Active>true</Active>
  <FirstName>sample string 4</FirstName>
  <LastName>sample string 5</LastName>
  <OwnerId>sample string 3</OwnerId>
  <Rate>1.1</Rate>
  <SalaryDate>1</SalaryDate>
  <TaxiId>1</TaxiId>
  <UserId>sample string 2</UserId>
  <Weekly>true</Weekly>
  <id>1</id>
</Driver>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.