POST API/Review/Add

Request Information

URI Parameters

None.

Body Parameters

ReviewRequest
NameDescriptionTypeAdditional information
vehicle_id

globally unique identifier

None.

mileage

integer

None.

comment

string

None.

desiredDeadline

date

None.

stocks

Collection of Item

None.

Request Formats

application/json, text/json

Sample:
{
  "vehicle_id": "e131d011-fe60-4edf-9c1f-1cea55176e89",
  "mileage": 1,
  "comment": "sample string 1",
  "desiredDeadline": "2026-01-17T05:28:45.0434727+05:00",
  "stocks": [
    {
      "id": 1,
      "type": "sample string 1",
      "category": "sample string 2",
      "code": "sample string 3",
      "name": "sample string 4",
      "quantity": 1,
      "cause": "sample string 5",
      "NormVehicle": 1,
      "NormTruck": 1,
      "NumberOfInspectors": 1
    },
    {
      "id": 1,
      "type": "sample string 1",
      "category": "sample string 2",
      "code": "sample string 3",
      "name": "sample string 4",
      "quantity": 1,
      "cause": "sample string 5",
      "NormVehicle": 1,
      "NormTruck": 1,
      "NumberOfInspectors": 1
    }
  ]
}

application/xml, text/xml

Sample:
<ReviewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CarPark.Models.Interaction">
  <comment>sample string 1</comment>
  <desiredDeadline>2026-01-17T05:28:45.0434727+05:00</desiredDeadline>
  <mileage>1</mileage>
  <stocks xmlns:d2p1="http://schemas.datacontract.org/2004/07/CarPark.Models.Common">
    <d2p1:Item>
      <d2p1:NormTruck>1</d2p1:NormTruck>
      <d2p1:NormVehicle>1</d2p1:NormVehicle>
      <d2p1:NumberOfInspectors>1</d2p1:NumberOfInspectors>
      <d2p1:category>sample string 2</d2p1:category>
      <d2p1:cause>sample string 5</d2p1:cause>
      <d2p1:code>sample string 3</d2p1:code>
      <d2p1:id>1</d2p1:id>
      <d2p1:name>sample string 4</d2p1:name>
      <d2p1:quantity>1</d2p1:quantity>
      <d2p1:type>sample string 1</d2p1:type>
    </d2p1:Item>
    <d2p1:Item>
      <d2p1:NormTruck>1</d2p1:NormTruck>
      <d2p1:NormVehicle>1</d2p1:NormVehicle>
      <d2p1:NumberOfInspectors>1</d2p1:NumberOfInspectors>
      <d2p1:category>sample string 2</d2p1:category>
      <d2p1:cause>sample string 5</d2p1:cause>
      <d2p1:code>sample string 3</d2p1:code>
      <d2p1:id>1</d2p1:id>
      <d2p1:name>sample string 4</d2p1:name>
      <d2p1:quantity>1</d2p1:quantity>
      <d2p1:type>sample string 1</d2p1:type>
    </d2p1:Item>
  </stocks>
  <vehicle_id>e131d011-fe60-4edf-9c1f-1cea55176e89</vehicle_id>
</ReviewRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

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>