POST api/Driver/AddDriver

Request Information

URI Parameters

None.

Body Parameters

AddDriverCommandDto
NameDescriptionTypeAdditional information
TeamId

globally unique identifier

None.

DriverName

string

None.

DriverNameFr

string

None.

Description

string

None.

DescriptionFr

string

None.

SeedPosition

integer

None.

IsAvailableForQualifying

boolean

None.

UserId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "TeamId": "512010e4-2052-4e15-9bbe-526f03474793",
  "DriverName": "sample string 1",
  "DriverNameFr": "sample string 2",
  "Description": "sample string 3",
  "DescriptionFr": "sample string 4",
  "SeedPosition": 5,
  "IsAvailableForQualifying": true,
  "UserId": "25081ffa-7cb9-4102-99e1-1e05681c9e2c"
}

application/xml, text/xml

Sample:
<AddDriverCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.DriverModule.Model">
  <Description>sample string 3</Description>
  <DescriptionFr>sample string 4</DescriptionFr>
  <DriverName>sample string 1</DriverName>
  <DriverNameFr>sample string 2</DriverNameFr>
  <IsAvailableForQualifying>true</IsAvailableForQualifying>
  <SeedPosition>5</SeedPosition>
  <TeamId>512010e4-2052-4e15-9bbe-526f03474793</TeamId>
  <UserId>25081ffa-7cb9-4102-99e1-1e05681c9e2c</UserId>
</AddDriverCommandDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddDriverCommandDto'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

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