POST api/v0/Driver/AddDriver

Request Information

URI Parameters

None.

Body Parameters

DriverContract
NameDescriptionTypeAdditional information
DriverId

integer

None.

Name

string

None.

Remarks

string

None.

IsDisabled

boolean

None.

DomainUserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DriverId": 1,
  "Name": "sample string 2",
  "Remarks": "sample string 3",
  "IsDisabled": true,
  "DomainUserId": 5
}

application/xml, text/xml

Sample:
<DriverContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FDService/v0/contracts/2017/01">
  <DomainUserId>5</DomainUserId>
  <DriverId>1</DriverId>
  <IsDisabled>true</IsDisabled>
  <Name>sample string 2</Name>
  <Remarks>sample string 3</Remarks>
</DriverContract>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>