POST Component/Create

Request Information

URI Parameters

None.

Body Parameters

ComponentNew
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

UnitId

integer

None.

Name

string

None.

SerialNo

string

None.

CompartmentTypeId

integer

None.

MakeId

integer

None.

CompartmentModelId

integer

None.

LocationId

integer

None.

AgeMeasureId

integer

None.

CapacityId

integer

None.

CapacityValue

integer

None.

PowerRatingId

integer

None.

PowerRatingValue

string

None.

DefaultFluidId

integer

None.

Comments

string

None.

HasFilter

boolean

None.

ReSamplePeriod

integer

None.

CustomerBarCode

string

None.

Request Formats

application/json

Sample:
{
  "HasFilter": true,
  "ReSamplePeriod": 14,
  "DefaultFluidId": 11,
  "PowerRatingId": 9,
  "CapacityId": 8,
  "AgeMeasureId": 7,
  "CompartmentTypeId": 6,
  "UnitId": 3,
  "UserId": 2,
  "Id": 1,
  "CapacityValue": 1,
  "LocationId": 1,
  "CompartmentModelId": 1,
  "MakeId": 1,
  "CustomerBarCode": "sample string 15",
  "Comments": "sample string 12",
  "PowerRatingValue": "sample string 10",
  "SerialNo": "sample string 5",
  "Name": "sample string 4"
}

application/xml, text/xml

Sample:
<ComponentNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webtrieve.Data.Models.Mobile">
  <AgeMeasureId>7</AgeMeasureId>
  <CapacityId>8</CapacityId>
  <CapacityValue>1</CapacityValue>
  <Comments>sample string 12</Comments>
  <CompartmentModelId>1</CompartmentModelId>
  <CompartmentTypeId>6</CompartmentTypeId>
  <CustomerBarCode>sample string 15</CustomerBarCode>
  <DefaultFluidId>11</DefaultFluidId>
  <HasFilter>true</HasFilter>
  <Id>1</Id>
  <LocationId>1</LocationId>
  <MakeId>1</MakeId>
  <Name>sample string 4</Name>
  <PowerRatingId>9</PowerRatingId>
  <PowerRatingValue>sample string 10</PowerRatingValue>
  <ReSamplePeriod>14</ReSamplePeriod>
  <SerialNo>sample string 5</SerialNo>
  <UnitId>3</UnitId>
  <UserId>2</UserId>
</ComponentNew>

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.