POST SaveServiceSpareAPI?databaseKey={databaseKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
databaseKey

string

Required

Body Parameters

ServiceSpare_BO
NameDescriptionTypeAdditional information
ServiceId

string

None.

SpareId

string

None.

SparesUsed

string

None.

UOM

string

None.

Type

string

None.

IssueQty

decimal number

None.

UsedQty

decimal number

None.

Cost

decimal number

None.

Amount

decimal number

None.

MId

string

None.

MINo

string

None.

MIDate

date

None.

DeptName

string

None.

deptid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ServiceId": "sample string 1",
  "SpareId": "sample string 2",
  "SparesUsed": "sample string 3",
  "UOM": "sample string 4",
  "Type": "sample string 5",
  "IssueQty": 6.0,
  "UsedQty": 7.0,
  "Cost": 8.0,
  "Amount": 9.0,
  "MId": "sample string 10",
  "MINo": "sample string 11",
  "MIDate": "2025-12-06T09:31:41.3631775+05:30",
  "DeptName": "sample string 12",
  "deptid": "sample string 13"
}

application/xml, text/xml

Sample:
<ServiceSpare_BO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rx2025_Api.Controllers">
  <Amount>9</Amount>
  <Cost>8</Cost>
  <DeptName>sample string 12</DeptName>
  <IssueQty>6</IssueQty>
  <MIDate>2025-12-06T09:31:41.3631775+05:30</MIDate>
  <MINo>sample string 11</MINo>
  <MId>sample string 10</MId>
  <ServiceId>sample string 1</ServiceId>
  <SpareId>sample string 2</SpareId>
  <SparesUsed>sample string 3</SparesUsed>
  <Type>sample string 5</Type>
  <UOM>sample string 4</UOM>
  <UsedQty>7</UsedQty>
  <deptid>sample string 13</deptid>
</ServiceSpare_BO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.