POST api/product/add-policy-nominated-drivers

Request Information

URI Parameters

None.

Body Parameters

Collection of NominatedDriverModel
NameDescriptionTypeAdditional information
PolicyId

integer

None.

PolicyNominatedDriverId

integer

None.

FirstName

string

None.

Surname

string

None.

IdentificationNo

string

None.

MobileNo

string

None.

DriverLicenceNo

string

None.

DriverLicenceExpiryDt

string

None.

DriverLicenceTypeCode

string

None.

UpdateDt

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "policyId": 1,
    "policyNominatedDriverId": 1,
    "firstName": "sample string 1",
    "surname": "sample string 2",
    "identificationNo": "sample string 3",
    "mobileNo": "sample string 4",
    "driverLicenceNo": "sample string 5",
    "driverLicenceExpiryDt": "sample string 6",
    "driverLicenceTypeCode": "sample string 7",
    "updateDt": "2025-12-06T06:51:29.4576111+02:00"
  },
  {
    "policyId": 1,
    "policyNominatedDriverId": 1,
    "firstName": "sample string 1",
    "surname": "sample string 2",
    "identificationNo": "sample string 3",
    "mobileNo": "sample string 4",
    "driverLicenceNo": "sample string 5",
    "driverLicenceExpiryDt": "sample string 6",
    "driverLicenceTypeCode": "sample string 7",
    "updateDt": "2025-12-06T06:51:29.4576111+02:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfNominatedDriverModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fusion.AppApi.Models">
  <NominatedDriverModel>
    <DriverLicenceExpiryDt>sample string 6</DriverLicenceExpiryDt>
    <DriverLicenceNo>sample string 5</DriverLicenceNo>
    <DriverLicenceTypeCode>sample string 7</DriverLicenceTypeCode>
    <FirstName>sample string 1</FirstName>
    <IdentificationNo>sample string 3</IdentificationNo>
    <MobileNo>sample string 4</MobileNo>
    <PolicyId>1</PolicyId>
    <PolicyNominatedDriverId>1</PolicyNominatedDriverId>
    <Surname>sample string 2</Surname>
    <UpdateDt>2025-12-06T06:51:29.4576111+02:00</UpdateDt>
  </NominatedDriverModel>
  <NominatedDriverModel>
    <DriverLicenceExpiryDt>sample string 6</DriverLicenceExpiryDt>
    <DriverLicenceNo>sample string 5</DriverLicenceNo>
    <DriverLicenceTypeCode>sample string 7</DriverLicenceTypeCode>
    <FirstName>sample string 1</FirstName>
    <IdentificationNo>sample string 3</IdentificationNo>
    <MobileNo>sample string 4</MobileNo>
    <PolicyId>1</PolicyId>
    <PolicyNominatedDriverId>1</PolicyNominatedDriverId>
    <Surname>sample string 2</Surname>
    <UpdateDt>2025-12-06T06:51:29.4576111+02:00</UpdateDt>
  </NominatedDriverModel>
</ArrayOfNominatedDriverModel>

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 'NominatedDriverModel[]'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.