POST Unit/Create

Request Information

URI Parameters

None.

Body Parameters

Unit
NameDescriptionTypeAdditional information
Id

integer

None.

UnitId

string

None.

MakeId

string

None.

UnitModelId

string

None.

AgeMeasureId

string

None.

CompanyId

string

None.

SerialNumber

string

None.

YearOfManufacture

string

None.

Description

string

None.

Comment

string

None.

Site

string

None.

Request Formats

application/json

Sample:
{
  "Id": 1,
  "Site": "sample string 11",
  "Comment": "sample string 10",
  "Description": "sample string 9",
  "YearOfManufacture": "sample string 8",
  "SerialNumber": "sample string 7",
  "CompanyId": "sample string 6",
  "AgeMeasureId": "sample string 5",
  "UnitModelId": "sample string 4",
  "MakeId": "sample string 3",
  "UnitId": "sample string 2"
}

application/xml, text/xml

Sample:
<Unit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webtrieve.Data.Models.Mobile">
  <AgeMeasureId>sample string 5</AgeMeasureId>
  <Comment>sample string 10</Comment>
  <CompanyId>sample string 6</CompanyId>
  <Description>sample string 9</Description>
  <Id>1</Id>
  <MakeId>sample string 3</MakeId>
  <SerialNumber>sample string 7</SerialNumber>
  <Site>sample string 11</Site>
  <UnitId>sample string 2</UnitId>
  <UnitModelId>sample string 4</UnitModelId>
  <YearOfManufacture>sample string 8</YearOfManufacture>
</Unit>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.