POST api/Package/SaveByModel

Request Information

URI Parameters

None.

Body Parameters

PackageModel
NameDescriptionTypeAdditional information
ID

integer

None.

PlatformID

integer

None.

HospitalID

integer

None.

Code

string

None.

Name

string

None.

PY

string

None.

ListPrice

decimal number

None.

Price

decimal number

None.

BarCodeCount

integer

None.

PackageType

integer

None.

BarCodeReport

string

None.

ReportStyle

string

None.

GwReportStyle

string

None.

CardReportStyle

string

None.

RegItemBillStyle

string

None.

ReceiptReportStyle

string

None.

InvoiceStyle

string

None.

ExtensionNoticeStyle

string

None.

PersonalGuaranteeStyle

string

None.

Memo

string

None.

Available

boolean

None.

ReViewUserID

integer

None.

ReViewTime

date

None.

UpdateTime

date

None.

UpdateUserID

integer

None.

ResidentTypeIDList

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ResidentTypeIDList": [
    1,
    2
  ],
  "ID": 1,
  "PlatformID": 1,
  "HospitalID": 1,
  "Code": "sample string 1",
  "Name": "sample string 2",
  "PY": "sample string 3",
  "ListPrice": 1.0,
  "Price": 1.0,
  "BarCodeCount": 1,
  "PackageType": 1,
  "BarCodeReport": "sample string 4",
  "ReportStyle": "sample string 5",
  "GwReportStyle": "sample string 6",
  "CardReportStyle": "sample string 7",
  "RegItemBillStyle": "sample string 8",
  "ReceiptReportStyle": "sample string 9",
  "InvoiceStyle": "sample string 10",
  "ExtensionNoticeStyle": "sample string 11",
  "PersonalGuaranteeStyle": "sample string 12",
  "Memo": "sample string 13",
  "Available": true,
  "ReViewUserID": 1,
  "ReViewTime": "2026-05-02T18:06:18.6703485+08:00",
  "UpdateTime": "2026-05-02T18:06:18.6703485+08:00",
  "UpdateUserID": 1
}

application/xml, text/xml

Sample:
<PackageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO.ExchangeModels">
  <Available xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">true</Available>
  <BarCodeCount xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">1</BarCodeCount>
  <BarCodeReport xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 4</BarCodeReport>
  <CardReportStyle xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 7</CardReportStyle>
  <Code xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 1</Code>
  <ExtensionNoticeStyle xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 11</ExtensionNoticeStyle>
  <GwReportStyle xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 6</GwReportStyle>
  <HospitalID xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">1</HospitalID>
  <ID xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">1</ID>
  <InvoiceStyle xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 10</InvoiceStyle>
  <ListPrice xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">1</ListPrice>
  <Memo xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 13</Memo>
  <Name xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 2</Name>
  <PY xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 3</PY>
  <PackageType xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">1</PackageType>
  <PersonalGuaranteeStyle xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 12</PersonalGuaranteeStyle>
  <PlatformID xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">1</PlatformID>
  <Price xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">1</Price>
  <ReViewTime xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">2026-05-02T18:06:18.6703485+08:00</ReViewTime>
  <ReViewUserID xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">1</ReViewUserID>
  <ReceiptReportStyle xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 9</ReceiptReportStyle>
  <RegItemBillStyle xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 8</RegItemBillStyle>
  <ReportStyle xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">sample string 5</ReportStyle>
  <UpdateTime xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">2026-05-02T18:06:18.6703485+08:00</UpdateTime>
  <UpdateUserID xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">1</UpdateUserID>
  <ResidentTypeIDList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </ResidentTypeIDList>
</PackageModel>

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.