POST api/v1/CustomerTruck/New

Create a new Customer Truck record.

Request Information

URI Parameters

None.

Body Parameters

CustomerTruck
NameDescriptionTypeAdditional information
CustomerId

globally unique identifier

None.

IsThirdParty

boolean

None.

ExternalId

string

None.

TruckId

integer

None.

TruckRego

string

Required

TruckNumber

string

None.

TruckType

string

None.

ModelOrigin

string

None.

adhoc

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": "51b94b64-99ae-4342-af01-5daf8f33e4c2",
  "IsThirdParty": true,
  "ExternalId": "sample string 2",
  "TruckId": 3,
  "TruckRego": "sample string 4",
  "TruckNumber": "sample string 5",
  "TruckType": "sample string 6",
  "ModelOrigin": "sample string 7",
  "adhoc": true
}

application/xml, text/xml

Sample:
<CustomerTruck xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/nfuels_sharedmodels.Models.Truck">
  <ModelOrigin>sample string 7</ModelOrigin>
  <TruckId>3</TruckId>
  <TruckNumber>sample string 5</TruckNumber>
  <TruckRego>sample string 4</TruckRego>
  <TruckType>sample string 6</TruckType>
  <adhoc>true</adhoc>
  <CustomerId>51b94b64-99ae-4342-af01-5daf8f33e4c2</CustomerId>
  <ExternalId>sample string 2</ExternalId>
  <IsThirdParty>true</IsThirdParty>
</CustomerTruck>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIPostResult

APIPostResult
NameDescriptionTypeAdditional information
Id

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<APIPostResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/nfuels_sharedmodels.Models.api">
  <Id>1</Id>
  <Message>sample string 2</Message>
</APIPostResult>