POST api/AddMeasureType

Request Information

URI Parameters

None.

Body Parameters

MeasureTypeAddEditRequest
NameDescriptionTypeAdditional information
Code

string

None.

Unit

string

None.

Id

integer

None.

Name

string

None.

Description

string

None.

IsEnabled

boolean

None.

User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "unit": "sample string 2",
  "id": 3,
  "name": "sample string 4",
  "description": "sample string 5",
  "isEnabled": true,
  "user": "sample string 7",
  "userId": 8,
  "validationKey": "sample string 9"
}

application/xml, text/xml

Sample:
<MeasureTypeAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.MeasureType">
  <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 7</User>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">8</UserId>
  <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 9</ValidationKey>
  <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 5</Description>
  <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">3</Id>
  <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">true</IsEnabled>
  <Name xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 4</Name>
  <Code>sample string 1</Code>
  <Unit>sample string 2</Unit>
</MeasureTypeAddEditRequest>

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

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
ResultCode

integer

None.

ResultMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "resultCode": 1,
  "resultMessage": "sample string 2",
  "errorMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">
  <ErrorMessage>sample string 3</ErrorMessage>
  <ResultCode>1</ResultCode>
  <ResultMessage>sample string 2</ResultMessage>
</Response>