POST api/VehicleWeightCategory/AddVehicleWeightCategory

Request Information

URI Parameters

None.

Body Parameters

VehicleWeightCategoryDTO
NameDescriptionTypeAdditional information
id

integer

None.

category

string

None.

name

string

None.

title

string

None.

priority

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "category": "sample string 2",
  "name": "sample string 3",
  "title": "sample string 4",
  "priority": 5
}

application/xml, text/xml

Sample:
<VehicleWeightCategoryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
  <category>sample string 2</category>
  <id>1</id>
  <name>sample string 3</name>
  <priority>5</priority>
  <title>sample string 4</title>
</VehicleWeightCategoryDTO>

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 'VehicleWeightCategoryDTO'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>