POST api/Diseases/save

Request Information

URI Parameters

None.

Body Parameters

DiseasesViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

DeviceId

string

None.

Pincode

integer

None.

ProcessId

integer

None.

CategoryTypeId

integer

None.

CategoryName

string

None.

IsActive

boolean

None.

CreatedDateTime

date

None.

CreatedById

integer

None.

UpdatedDateTime

date

None.

UpdatedById

integer

None.

ErrorMessage

Collection of ErrorModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DeviceId": "sample string 2",
  "Pincode": 3,
  "ProcessId": 4,
  "CategoryTypeId": 5,
  "CategoryName": "sample string 6",
  "IsActive": true,
  "CreatedDateTime": "2020-09-28T02:22:05.640085-07:00",
  "CreatedById": 9,
  "UpdatedDateTime": "2020-09-28T02:22:05.640085-07:00",
  "UpdatedById": 11,
  "ErrorMessage": [
    {
      "ErrorCode": "sample string 1",
      "Status": 0,
      "Message": "sample string 2"
    },
    {
      "ErrorCode": "sample string 1",
      "Status": 0,
      "Message": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<DiseasesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ICAC.SeepSoil.ViewModels">
  <CreatedById>9</CreatedById>
  <CreatedDateTime>2020-09-28T02:22:05.640085-07:00</CreatedDateTime>
  <ErrorMessage>
    <ErrorModel>
      <ErrorCode>sample string 1</ErrorCode>
      <Message>sample string 2</Message>
      <Status>FAILED</Status>
    </ErrorModel>
    <ErrorModel>
      <ErrorCode>sample string 1</ErrorCode>
      <Message>sample string 2</Message>
      <Status>FAILED</Status>
    </ErrorModel>
  </ErrorMessage>
  <UpdatedById>11</UpdatedById>
  <UpdatedDateTime>2020-09-28T02:22:05.640085-07:00</UpdatedDateTime>
  <CategoryName>sample string 6</CategoryName>
  <CategoryTypeId>5</CategoryTypeId>
  <DeviceId>sample string 2</DeviceId>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <Pincode>3</Pincode>
  <ProcessId>4</ProcessId>
</DiseasesViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.