POST api/testdrive/add

Request Information

URI Parameters

None.

Body Parameters

TestDrive
NameDescriptionTypeAdditional information
TestDriveId

integer

None.

CarId

integer

None.

InquiryId

integer

None.

DateTimeGo

date

None.

DateTimeIn

date

None.

SalesPerson

string

None.

LicensePhoto

string

None.

PlateNo

string

None.

RulesAccepted

boolean

None.

CreatedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "TestDriveId": 1,
  "CarId": 2,
  "InquiryId": 3,
  "DateTimeGo": "2026-01-09T01:00:23.329022+05:30",
  "DateTimeIn": "2026-01-09T01:00:23.329022+05:30",
  "SalesPerson": "sample string 5",
  "LicensePhoto": "sample string 6",
  "PlateNo": "sample string 7",
  "RulesAccepted": true,
  "CreatedDate": "2026-01-09T01:00:23.329022+05:30"
}

application/xml, text/xml

Sample:
<TestDrive xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pwacrmapi">
  <CarId>2</CarId>
  <CreatedDate>2026-01-09T01:00:23.329022+05:30</CreatedDate>
  <DateTimeGo>2026-01-09T01:00:23.329022+05:30</DateTimeGo>
  <DateTimeIn>2026-01-09T01:00:23.329022+05:30</DateTimeIn>
  <InquiryId>3</InquiryId>
  <LicensePhoto>sample string 6</LicensePhoto>
  <PlateNo>sample string 7</PlateNo>
  <RulesAccepted>true</RulesAccepted>
  <SalesPerson>sample string 5</SalesPerson>
  <TestDriveId>1</TestDriveId>
</TestDrive>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Dictionary of string [key] and Object [value]

Response Formats

application/json, text/json

Sample:
{
  "sample string 1": {},
  "sample string 3": {}
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringanyType>
    <Key>sample string 1</Key>
    <Value />
  </KeyValueOfstringanyType>
  <KeyValueOfstringanyType>
    <Key>sample string 3</Key>
    <Value />
  </KeyValueOfstringanyType>
</ArrayOfKeyValueOfstringanyType>