POST crm/vehicle

Method to submit new vehicle.

Request Information

URI Parameters

None.

Body Parameters

ERP.Api.Models.CRM.VehicleModel
NameDescriptionTypeAdditional information
Make

Gets or sets the make.

string

None.

Model

Gets or sets the model.

string

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "make": "sample string 1",
  "model": "sample string 2",
  "id": 3
}

application/xml, text/xml

Sample:
<VehicleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Api.Models.CRM">
  <Id xmlns="http://schemas.datacontract.org/2004/07/ERP.Api.Models">3</Id>
  <Make>sample string 1</Make>
  <Model>sample string 2</Model>
</VehicleModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ERP.Api.Models.CRM.VehicleModel'.

Response Information

Resource Description

System.Web.Http.IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.