POST waybill/create-by-alarm

Request Information

URI Parameters

None.

Body Parameters

Alarm
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

TypeId

integer

None.

CreatedDate

date

None.

Memo

string

None.

HandleUserId

integer

None.

HandleDesc

string

None.

SysAreaId

integer

None.

DevId

integer

None.

StartDate

date

None.

EndDate

date

None.

StatusId

integer

None.

Volt

decimal number

None.

Weight

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "TypeId": 3,
  "CreatedDate": "2025-04-24T09:11:36.4923846+08:00",
  "Memo": "sample string 5",
  "HandleUserId": 6,
  "HandleDesc": "sample string 7",
  "SysAreaId": 8,
  "DevId": 9,
  "StartDate": "2025-04-24T09:11:36.4923846+08:00",
  "EndDate": "2025-04-24T09:11:36.4923846+08:00",
  "StatusId": 12,
  "Volt": 13.0,
  "Weight": 14.0
}

application/xml, text/xml

Sample:
<Alarm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YHT.Core">
  <CreatedDate>2025-04-24T09:11:36.4923846+08:00</CreatedDate>
  <DevId>9</DevId>
  <EndDate>2025-04-24T09:11:36.4923846+08:00</EndDate>
  <HandleDesc>sample string 7</HandleDesc>
  <HandleUserId>6</HandleUserId>
  <Id>1</Id>
  <Memo>sample string 5</Memo>
  <Name>sample string 2</Name>
  <StartDate>2025-04-24T09:11:36.4923846+08:00</StartDate>
  <StatusId>12</StatusId>
  <SysAreaId>8</SysAreaId>
  <TypeId>3</TypeId>
  <Volt>13</Volt>
  <Weight>14</Weight>
</Alarm>

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

Response Information

Resource Description

RtBase
NameDescriptionTypeAdditional information
code

integer

None.

msg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2"
}

application/xml, text/xml

Sample:
<RtBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseWebApi.Model">
  <code>1</code>
  <msg>sample string 2</msg>
</RtBase>